Example showing log messages in all levels. Should be installed as ui-utilcpp-smlog along with the library.
#include "config.h"
int main()
{
ost::slog.open("ui-utilcpp_smlogm", ost::Slog::classUser);
ost::slog.clogEnable(true);
}
Syslog Macro Log: Simple logging based on compiler macros and syslog(3)
#define SM_LOGWARNING(x)
Macro for syslog(3) level WARNING.
Definition SMLog.hpp:122
#define SM_LOGDEBUG(x)
Macro for syslog(3) level DEBUG.
Definition SMLog.hpp:143
#define SM_LOGALERT(x)
Macro for syslog(3) level ALERT.
Definition SMLog.hpp:101
#define SM_LOGEMERG(x)
Macro for syslog(3) level EMERG.
Definition SMLog.hpp:94
#define SM_LOGCRIT(x)
Macro for syslog(3) level CRIT.
Definition SMLog.hpp:108
#define SM_LOGINFO(x)
Macro for syslog(3) level INFO.
Definition SMLog.hpp:136
#define SM_LOGNOTICE(x)
Macro for syslog(3) level NOTICE.
Definition SMLog.hpp:129
#define SM_LOGERR(x)
Macro for syslog(3) level ERR.
Definition SMLog.hpp:115