UniSet  2.6.0
Классы | Открытые члены | Открытые статические члены | Открытые атрибуты | Защищенные члены | Друзья | Полный список членов класса
Класс 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::list< iLoggetLogList () const
std::list< iLoggetLogList (const std::string &regexp_str) const
std::ostream & printLogList (std::ostream &os, const std::string &regexp_str="")
- Открытые члены inherited from DebugStream
 DebugStream (Debug::type t=Debug::NONE)
 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
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 showMilliseconds (bool s) noexcept
void showMicroseconds (bool s) noexcept
void showLogType (bool s) noexcept
std::ostream & log (Debug::type l) 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)

Открытые атрибуты

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="")
std::list< iLogmakeLogNameList (const std::string &prefix) const
- Защищенные члены inherited from 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)

Additional Inherited Members

- Открытые типы inherited from DebugStream
typedef sigc::signal< void,
const std::string & > 
StreamEvent_Signal
- Защищенные данные inherited from 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 }
std::string fname = { "" }
StreamEvent_Signal s_stream
std::string logname = { "" }
bool isWriteLogFile = { false }

Методы

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

Sets the debugstreams' logfile to f.

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