diff options
author | Michael Andres <ma@suse.de> | 2010-11-03 13:41:38 +0100 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2010-11-03 13:41:38 +0100 |
commit | b1cf85436413fcf80270af09c2e1e2a4f0f0cafc (patch) | |
tree | cfed64f4f6ceb6c2db3f865a6c1bb71e3fb6bfb6 /swig/zypp.i | |
parent | 4cc37faff25e4930d109c06ea58885c66d353bfa (diff) | |
download | libzypp-bindings-b1cf85436413fcf80270af09c2e1e2a4f0f0cafc.tar.gz libzypp-bindings-b1cf85436413fcf80270af09c2e1e2a4f0f0cafc.tar.bz2 libzypp-bindings-b1cf85436413fcf80270af09c2e1e2a4f0f0cafc.zip |
Add zypp::setZyppLogfile: empty string for off, '-' for stderr or file
Diffstat (limited to 'swig/zypp.i')
-rw-r--r-- | swig/zypp.i | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/swig/zypp.i b/swig/zypp.i index 67c17ae..c9584a7 100644 --- a/swig/zypp.i +++ b/swig/zypp.i @@ -158,3 +158,19 @@ namespace zypp { %include <zypp/ZYpp.h> %include "ZYppFactory.i" + +// +// helper +// +%{ +#include <zypp/base/LogControl.h> +%} +%inline %{ + namespace zypp + { + void setZyppLogfile( const std::string & file_r ) + { + base::LogControl::instance().logfile( file_r ); + } + } +%} |