libzypp 17.35.9
|
LogControl implementation (thread_local Singleton). More...
Static Public Member Functions | |
static bool | instanceHideThreadName () |
static void | instanceHideThreadName (bool onOff_r) |
static bool | instanceLogToPPID () |
Hint for formatter wether we forward all logs to a parents log. | |
static void | instanceSetLogToPPID (bool onOff_r) |
static LogControlImpl * | instance () |
The LogControlImpl singleton. | |
Private Types | |
using | StreamPtr = shared_ptr<Loglinestream> |
using | StreamSet = std::map<LogLevel, StreamPtr> |
using | StreamTable = std::map<std::string, StreamSet> |
Private Member Functions | |
void | readEnvVars () |
LogControlImpl () | |
Singleton ctor. | |
Private Attributes | |
LogClient | _logClient |
std::ostream | _no_stream |
bool | _excessive |
bool | _logToPPIDMode = false |
Hint for formatter to use the PPID and always show the thread name. | |
TriBool | _hideThreadName = indeterminate |
Hint for Formater whether to hide the thread name. | |
shared_ptr< LogControl::LineFormater > | _lineFormater |
StreamTable | _streamtable |
one streambuffer per group and level | |
zyppng::Socket::Ptr | _sock |
Related Symbols | |
(Note that these are not member symbols.) | |
std::ostream & | operator<< (std::ostream &str, const LogControlImpl &) |
Stream output. | |
LogControl implementation (thread_local Singleton).
_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 561 of file LogControl.cc.
Definition at line 688 of file LogControl.cc.
|
private |
Definition at line 689 of file LogControl.cc.
|
private |
Definition at line 690 of file LogControl.cc.
|
inlineprivate |
Singleton ctor.
No logging per default, unless enabled via $ZYPP_LOGFILE.
Definition at line 710 of file LogControl.cc.
|
delete |
|
delete |
|
inline |
Definition at line 729 of file LogControl.cc.
|
inline |
Definition at line 564 of file LogControl.cc.
Definition at line 566 of file LogControl.cc.
|
inline |
Hint for Formater whether to hide the thread name.
Definition at line 571 of file LogControl.cc.
Definition at line 578 of file LogControl.cc.
Definition at line 582 of file LogControl.cc.
Definition at line 588 of file LogControl.cc.
Hint for formatter wether we forward all logs to a parents log.
Definition at line 595 of file LogControl.cc.
Definition at line 602 of file LogControl.cc.
|
inline |
NULL _lineWriter indicates no loggin.
Definition at line 610 of file LogControl.cc.
|
inline |
Definition at line 613 of file LogControl.cc.
|
inline |
Assert _lineFormater is not NULL.
Definition at line 617 of file LogControl.cc.
|
inline |
Definition at line 625 of file LogControl.cc.
|
inline |
Provide the log stream to write (logger interface)
Definition at line 646 of file LogControl.cc.
|
inline |
Definition at line 670 of file LogControl.cc.
|
inline |
Format and write out a logline from Loglinebuf.
Definition at line 675 of file LogControl.cc.
|
inlineprivate |
Definition at line 697 of file LogControl.cc.
|
delete |
|
delete |
|
inlinestatic |
The LogControlImpl singleton.
Definition at line 745 of file LogControl.cc.
|
related |
Stream output.
Definition at line 756 of file LogControl.cc.
|
private |
Definition at line 636 of file LogControl.cc.
|
private |
Definition at line 637 of file LogControl.cc.
|
private |
Definition at line 638 of file LogControl.cc.
Hint for formatter to use the PPID and always show the thread name.
Definition at line 639 of file LogControl.cc.
|
mutableprivate |
Hint for Formater whether to hide the thread name.
Definition at line 640 of file LogControl.cc.
|
private |
Definition at line 642 of file LogControl.cc.
|
private |
one streambuffer per group and level
Definition at line 692 of file LogControl.cc.
|
private |
Definition at line 693 of file LogControl.cc.