12#ifndef ZYPP_BASE_LOGCONTROL_H
13#define ZYPP_BASE_LOGCONTROL_H
116 virtual std::string format(
const std::string & ,
121 const std::string & );
137 void enableLogForwardingMode (
bool enable =
true );
156 void emergencyShutdown();
163 static void notifyFork();
166 void logRawLine ( std::string &&
line );
193 : _writer(
LogControl::instance().getLineWriter() )
194 { LogControl::instance().setLineWriter(
writer_r ); }
201 template<
class TLineWriter>
203 : _writer(
LogControl::instance().getLineWriter() )
207 { LogControl::instance().setLineWriter( _writer ); }
std::ostream & operator<<(std::ostream &str, const zypp::sat::detail::CDataiterator *obj)
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Maintain logfile related options.
LogControl()
Default ctor: Singleton.
static LogControl instance()
Singleton access.
String related utilities and Regular expression matching.
LogLevel
Definition of log levels.
std::ostream & operator<<(std::ostream &str, const Flags< TEnum > &obj)
Easy-to use interface to the ZYPP dependency resolver.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Turn on excessive logging for the lifetime of this object.
Exchange LineWriter for the lifetime of this object.
TmpLineWriter(const shared_ptr< LineWriter > &writer_r=shared_ptr< LineWriter >())
shared_ptr< LineWriter > _writer
TmpLineWriter(TLineWriter *_allocated_r)
Convenience ctor taking over ownership of an allocated LineWriter.
If you want to log the (formated) loglines by yourself, derive from this, and overload writeOut.
virtual void writeOut(const std::string &)
Base class for ostream based LineWriter.
StreamLineWriter(std::ostream &str_r)
void writeOut(const std::string &formated_r) override