Public Member Functions | |
| void | excessive (bool onOff_r) |
| void | setLineWriter (const shared_ptr< LogControl::LineWriter > &writer_r) |
| NULL _lineWriter indicates no loggin. | |
| shared_ptr< LogControl::LineWriter > | getLineWriter () const |
| void | setLineFormater (const shared_ptr< LogControl::LineFormater > &format_r) |
| Assert _lineFormater is not NULL. | |
| void | logfile (const Pathname &logfile_r) |
| std::ostream & | getStream (const std::string &group_r, LogLevel level_r, const char *file_r, const char *func_r, const int line_r) |
| Provide the log stream to write (logger interface). | |
| void | putStream (const std::string &group_r, LogLevel level_r, const char *file_r, const char *func_r, int line_r, const std::string &message_r) |
| Format and write out a logline from Loglinebuf. | |
Static Public Attributes | |
| static LogControlImpl | instance |
| The LogControlImpl singleton. | |
Private Types | |
| typedef shared_ptr< Loglinestream > | StreamPtr |
| typedef std::map< LogLevel, StreamPtr > | StreamSet |
| typedef std::map< std::string, StreamSet > | StreamTable |
Private Member Functions | |
| LogControlImpl () | |
| Singleton ctor. | |
Private Attributes | |
| std::ostream | _no_stream |
| bool | _excessive |
| shared_ptr< LogControl::LineFormater > | _lineFormater |
| shared_ptr< LogControl::LineWriter > | _lineWriter |
| StreamTable | _streamtable |
| one streambuffer per group and level | |
_lineFormater must not be NULL (create default LogControl::LineFormater) _lineWriter is NULL if no logging is performed, this way we can pass _no_stream as logstream to the application, and avoid unnecessary formating of logliles, which would then be discarded when passed to some dummy LineWriter.
Definition at line 207 of file LogControl.cc.
|
|
Definition at line 281 of file LogControl.cc. |
|
|
Definition at line 282 of file LogControl.cc. |
|
|
Definition at line 283 of file LogControl.cc. |
|
|
Singleton ctor. No logging per default, unless enabled via $ZYPP_LOGFILE. Definition at line 291 of file LogControl.cc. |
|
|
Definition at line 210 of file LogControl.cc. |
|
|
NULL _lineWriter indicates no loggin.
Definition at line 214 of file LogControl.cc. |
|
|
Definition at line 217 of file LogControl.cc. |
|
|
Assert _lineFormater is not NULL.
Definition at line 221 of file LogControl.cc. |
|
|
Definition at line 229 of file LogControl.cc. References zypp::filesystem::Pathname::empty(). |
|
||||||||||||||||||||||||
|
Provide the log stream to write (logger interface).
Definition at line 248 of file LogControl.cc. References zypp::base::logger::E_XXX. |
|
||||||||||||||||||||||||||||
|
Format and write out a logline from Loglinebuf.
Definition at line 267 of file LogControl.cc. |
|
|
Definition at line 240 of file LogControl.cc. |
|
|
Definition at line 241 of file LogControl.cc. |
|
|
Definition at line 243 of file LogControl.cc. |
|
|
Definition at line 244 of file LogControl.cc. |
|
|
one streambuffer per group and level
Definition at line 285 of file LogControl.cc. |
|
|
The LogControlImpl singleton.
Definition at line 307 of file LogControl.cc. |
1.4.6