Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Safir::Logging Namespace Reference

Enumerations

enum  Severity {
  Emergency = 0, Alert, Critical, Error,
  Warning, Notice, Informational, Debug
}
 Severity level according to RFC 3164. More...
 

Functions

LOGGING_CPP_API void SendSystemLog (const Severity severity, const std::wstring &message)
 Send log messages to the system logging mechanism. More...
 

Enumeration Type Documentation

Severity level according to RFC 3164.

Please read the section on Safir Logging in the Safir SDK Core User's Guide for some recommendations on when to use the various severity levels.

Enumerator
Emergency 

RFC 3164 Description: System is unusable.

Alert 

RFC 3164 Description: Action must be taken immediately.

Critical 

RFC 3164 Description: Critical conditions.

Error 

RFC 3164 Description: Error conditions.

Warning 

RFC 3164 Description: Warning conditions.

Notice 

RFC 3164 Description: Normal but significant condition.

Informational 

RFC 3164 Description: Informational messages.

Debug 

RFC 3164 Description: Debug-level messages.

Function Documentation

LOGGING_CPP_API void Safir::Logging::SendSystemLog ( const Severity  severity,
const std::wstring &  message 
)

Send log messages to the system logging mechanism.

The function takes a severity and an arbitrary string. The severity levels conforms to the ones used by the well known syslog format as specified in http://www.ietf.org/rfc/rfc3164.txt.

Parameters
[in]severitySeverity according to RFC 3164.
[in]messageLog text.