UniSet 2.32.1
Классы | Открытые члены | Открытые статические члены | Статические открытые данные | Защищенные члены | Друзья | Полный список членов класса
Класс uniset::LogAgregator
Граф наследования:uniset::LogAgregator:
Inheritance graph
[см. легенду]
Граф связей класса uniset::LogAgregator:
Collaboration graph
[см. легенду]

Классы

struct  iLog
 

Открытые члены

 LogAgregator (const std::string &name, Debug::type t)
 
 LogAgregator (const std::string &name="")
 
virtual void logFile (const std::string &f, bool truncate=false) override
 Sets the debugstreams' logfile to f.
 
void add (std::shared_ptr< LogAgregator > log, const std::string &lname="")
 
void add (std::shared_ptr< DebugStream > log, const std::string &lname="")
 
std::shared_ptr< DebugStreamcreate (const std::string &logname)
 
void addLevel (const std::string &logname, Debug::type t)
 
void delLevel (const std::string &logname, Debug::type t)
 
void level (const std::string &logname, Debug::type t)
 
void offLogFile (const std::string &logname)
 
void onLogFile (const std::string &logname)
 
std::shared_ptr< DebugStreamgetLog (const std::string &logname)
 
bool logExist (std::shared_ptr< DebugStream > &l) const
 
std::shared_ptr< DebugStreamfindByLogName (const std::string &logname) const
 
std::list< iLoggetLogList () const
 
std::list< iLoggetLogList (const std::string &regexp_str) const
 
std::ostream & printLogList (std::ostream &os, const std::string &regexp_str="") const
 
- Открытые члены унаследованные от DebugStream
 DebugStream (Debug::type t=Debug::NONE, Debug::verbosity v=0)
 Constructor, sets the debug level to t.
 
 DebugStream (char const *f, Debug::type t=Debug::NONE, bool truncate=false)
 Constructor, sets the log file to f, and the debug level to t.
 
StreamEvent_Signal signal_stream_event ()
 
void level (Debug::type t) noexcept
 Sets the debug level to t.
 
Debug::type level () const noexcept
 Returns the current debug level.
 
void addLevel (Debug::type t) noexcept
 Adds t to the current debug level.
 
void delLevel (Debug::type t) noexcept
 Deletes t from the current debug level.
 
std::string getLogFile () const noexcept
 
void setLogFile (const std::string &n) noexcept
 
bool isOnLogFile () const noexcept
 
void onLogFile (bool truncate=false)
 
void offLogFile () noexcept
 
void enableOnScreen ()
 
void disableOnScreen ()
 
bool debugging (Debug::type t=Debug::ANY) const noexcept
 Returns true if t is part of the current debug level.
 
std::ostream & debug (Debug::type t=Debug::ANY) noexcept
 
std::ostream & operator[] (Debug::type t) noexcept
 
std::ostream & to_end (Debug::type t) noexcept
 
std::ostream & operator() (Debug::type t) noexcept
 
void showDateTime (bool s) noexcept
 
void showLocalTime (bool s) noexcept
 
void showMilliseconds (bool s) noexcept
 
void showMicroseconds (bool s) noexcept
 
void showLogType (bool s) noexcept
 
void showLabels (bool s) noexcept
 
void hideLabelKey (bool s) noexcept
 
std::ostream & log (Debug::type l) noexcept
 
void verbose (Debug::verbosity v) noexcept
 
Debug::verbosity verbose () const noexcept
 Returns the current verbose level.
 
DebugStreamV (Debug::verbosity v) noexcept
 
void addLabel (const std::string &key, const std::string &value) noexcept
 
void delLabel (const std::string &key) noexcept
 
void cleanupLabels () noexcept
 
std::vector< Label > getLabels () noexcept
 
std::ostream & printDate (Debug::type t, char brk='/') noexcept
 
std::ostream & printTime (Debug::type t, char brk=':') noexcept
 
std::ostream & printDateTime (Debug::type t) noexcept
 
std::ostream & pos (int x, int y) noexcept
 
const DebugStreamoperator= (const DebugStream &r)
 
void setLogName (const std::string &n) noexcept
 
std::string getLogName () const noexcept
 

Открытые статические члены

static std::vector< std::string > splitFirst (const std::string &lname, const std::string s="/")
 
static std::ostream & printLogList (std::ostream &os, std::list< iLog > &lst)
 

Статические открытые данные

static const std::string sep = "/"
 

Защищенные члены

void logOnEvent (const std::string &s)
 
void addLog (std::shared_ptr< DebugStream > l, const std::string &lname, bool connect)
 
void addLogAgregator (std::shared_ptr< LogAgregator > la, const std::string &lname)
 
std::shared_ptr< DebugStreamfindLog (const std::string &lname) const
 
std::ostream & printTree (std::ostream &os, const std::string &g_tab="") const
 
std::list< iLogmakeLogNameList (const std::string &prefix) const
 
void getListByLogNameWithRule (std::list< iLog > &lst, const std::regex &rule, const std::string &prefix) const
 
- Защищенные члены унаследованные от DebugStream
void sbuf_overflow (const std::string &s) noexcept
 

Друзья

std::ostream & operator<< (std::ostream &os, LogAgregator &la)
 
std::ostream & operator<< (std::ostream &os, std::shared_ptr< LogAgregator > la)
 

Дополнительные унаследованные члены

- Открытые типы унаследованные от DebugStream
typedef sigc::signal< void, const std::string & > StreamEvent_Signal
 
typedef std::pair< std::string, std::string > Label
 
- Защищенные данные унаследованные от DebugStream
Debug::type dt = { Debug::NONE }
 The current debug level.
 
std::ostream nullstream
 The no-op stream.
 
debugstream_internalinternal = { 0 }
 
bool show_datetime = { true }
 
bool show_logtype = { true }
 
bool show_msec = { false }
 
bool show_usec = { false }
 
bool show_localtime = { false }
 
std::string fname = { "" }
 
StreamEvent_Signal s_stream
 
std::string logname = { "" }
 
bool isWriteLogFile = { false }
 
bool onScreen = { true }
 
Debug::verbosity verb = { 0 }
 
Debug::verbosity vv = { 0 }
 
std::vector< Label > labels
 
bool show_labels = { true }
 
bool hide_label_key = { false }
 

Методы

◆ logFile()

void uniset::LogAgregator::logFile ( const std::string & f,
bool truncate = false )
overridevirtual

Sets the debugstreams' logfile to f.

Переопределяет метод предка DebugStream.