|
| static EncodeStream & | tags (Log::Level level, const Subsystem &subsystem, const char *file, int line, const char *methodName, EncodeStream &strm, MessageStructure messageStructure) |
| | output the loglevel, hostname, appname, pid, tid, subsystem
|
| |
| static Data & | timestamp (Data &result) |
| |
| static Data | timestamp () |
| |
| static ExternalLogger * | getExternal () |
| |
| static Data | getAppName () |
| |
| static int | parseSyslogFacilityName (const Data &facilityName) |
| |
| static void | initialize (Type type, Level level, const Data &appName, const char *logFileName=0, ExternalLogger *externalLogger=0, const Data &syslogFacility="LOG_DAEMON", MessageStructure messageStructure=Unstructured, const Data &instanceName="") |
| |
| static void | initialize (const Data &type, const Data &level, const Data &appName, const char *logFileName=0, ExternalLogger *externalLogger=0, const Data &syslogFacility="LOG_DAEMON", const Data &messageStructure="Unstructured", const Data &instanceName="") |
| |
| static void | initialize (const char *type, const char *level, const char *appName, const char *logFileName=0, ExternalLogger *externalLogger=0, const char *syslogFacility="LOG_DAEMON", const char *messageStructure="Unstructured", const char *instanceName="") |
| |
| static void | initialize (Type type, Level level, const Data &appName, ExternalLogger &logger, const Data &syslogFacility="LOG_DAEMON", MessageStructure messageStructure=Unstructured, const Data &instanceName="") |
| |
| static void | initialize (const ConfigParse &configParse, const Data &appName, ExternalLogger *externalLogger=0) |
| |
| static void | setLevel (Level level) |
| | Set logging level for current thread.
|
| |
| static void | setLevel (Level level, Subsystem &s) |
| | Set logging level for given subsystem.
|
| |
| static void | setLevel (Level level, LocalLoggerId loggerId) |
| | Set logging level for given local logger.
|
| |
| static Level | level () |
| | Return logging level for current thread.
|
| |
| static Level | level (LocalLoggerId loggerId) |
| | Return logging level for given local logger.
|
| |
| static LocalLoggerId | id () |
| |
| static void | setMaxLineCount (unsigned int maxLineCount) |
| |
| static void | setMaxLineCount (unsigned int maxLineCount, LocalLoggerId loggerId) |
| |
| static void | setMaxByteCount (unsigned int maxByteCount) |
| |
| static void | setMaxByteCount (unsigned int maxByteCount, LocalLoggerId loggerId) |
| |
| static void | setKeepAllLogFiles (bool keepAllLogFiles) |
| |
| static void | setKeepAllLogFiles (bool keepAllLogFiles, LocalLoggerId loggerId) |
| |
| static Level | toLevel (const Data &l) |
| |
| static Type | toType (const Data &t) |
| |
| static Data | toString (Level l) |
| |
| static void | setServiceLevel (int service, Level l) |
| | DEPRECATED! Left for backward compatibility - use localLoggers instead.
|
| |
| static Level | getServiceLevel (int service) |
| |
| static const ThreadSetting * | getThreadSetting () |
| | DEPRECATED! Left for backward compatibility - use localLoggers instead.
|
| |
| static void | setThreadSetting (ThreadSetting info) |
| |
| static void | setThreadSetting (int serv, Level l) |
| |
| static void | setThreadSetting (int serv) |
| |
| static LocalLoggerId | localLoggerCreate (Type type, Level level, const char *logFileName=NULL, ExternalLogger *externalLogger=NULL, MessageStructure messageStructure=Unstructured) |
| | Create new logger instance and return its ID (zero on error)
|
| |
| static int | localLoggerReinitialize (LocalLoggerId loggerId, Type type, Level level, const char *logFileName=NULL, ExternalLogger *externalLogger=NULL, MessageStructure messageStructure=Unstructured) |
| | Reinitialize all new setting for a local logger instance.
|
| |
| static int | localLoggerRemove (LocalLoggerId loggerId) |
| | Destroy existing logger instance.
|
| |
| static int | setThreadLocalLogger (LocalLoggerId loggerId) |
| | Set logger instance with given ID as a thread local logger.
|
| |
| static std::ostream & | Instance (unsigned int bytesToWrite) |
| |
| static bool | isLogging (Log::Level level, const Subsystem &) |
| |
| static void | OutputToWin32DebugWindow (const Data &result) |
| |
| static void | reset () |
| | Frees logger stream.
|
| |
| static void | droppingPrivileges (uid_t uid, pid_t pid) |
| |
|
| static Mutex | _mutex |
| |
| static std::atomic< unsigned int > | touchCount {0} |
| |
| static const Data | delim |
| |
| static unsigned int | MaxLineCount = RESIP_LOG_MAX_LINE_COUNT_DEFAULT |
| |
| static unsigned int | MaxByteCount = RESIP_LOG_MAX_BYTE_COUNT_DEFAULT |
| |
| static bool | KeepAllLogFiles = false |
| |
| static ThreadData | mDefaultLoggerData |
| | Default logger settings.
|
| |
| static Data | mAppName |
| |
| static Data | mHostname |
| |
| static Data | mFqdn |
| |
| static int | mSyslogFacility = LOG_DAEMON |
| |
| static const char | mDescriptions [][32] = {"NONE", "EMERG", "ALERT", "CRIT", "ERR", "WARNING", "NOTICE", "INFO", "DEBUG", "STACK", "CERR", ""} |
| |
| static const char | mCEEPri [][32] = { "", "CRIT", "CRIT", "CRIT", "ERROR", "WARN", "DEBUG", "DEBUG", "DEBUG", "DEBUG", "ERROR", ""} |
| |
| static const int | mSyslogPriority [] = { 0, LOG_CRIT, LOG_CRIT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, LOG_DEBUG, LOG_DEBUG, LOG_ERR, 0 } |
| |
| static Data | mInstanceName |
| |
| static LocalLoggerMap | mLocalLoggerMap |
| |
| static ThreadIf::TlsKey * | mLocalLoggerKey |
| |
| static HashMap< ThreadIf::Id, std::pair< ThreadSetting, bool > > | mThreadToLevel |
| | DEPRECATED! Left for backward compatibility - use localLoggers instead.
|
| |
| static HashMap< int, std::set< ThreadIf::Id > > | mServiceToThreads |
| |
| static ThreadIf::TlsKey * | mLevelKey |
| |
| static HashMap< int, Level > | mServiceToLevel |
| | DEPRECATED! Left for backward compatibility - use localLoggers instead.
|
| |
Singleton that handles logging calls.
- See also
- Logger for usage details
Definition at line 50 of file Log.hxx.