Namespaces

Enumerations

enum LogSeverity
Name Value
Trace 0x10
Debug 0x20
Info 0x30
Warn 0x40
Error 0x50
Fatal 0x60

Defined at line 14 of file ../../sdk/lib/syslog/cpp/log_level.h

enum InterestListenerBehavior
Name Value
Disabled 0
Enabled 2

Interest listener configuration

Defined at line 23 of file ../../sdk/lib/syslog/cpp/log_settings.h

Records

Functions

  • void SetLogTags (const std::initializer_list<std::string> & tags)

    Defined at line 138 of file ../../sdk/lib/syslog/cpp/host/logging_backend.cc

  • void BeginRecord (LogBuffer * buffer, RawLogSeverity severity, internal::NullSafeStringView file, unsigned int line, internal::NullSafeStringView msg, internal::NullSafeStringView condition)

    Defined at line 144 of file ../../sdk/lib/syslog/cpp/host/logging_backend.cc

  • void EndRecord (LogBuffer * buffer)

    Defined at line 150 of file ../../sdk/lib/syslog/cpp/host/logging_backend.cc

  • void WriteLog (LogSeverity severity, const char * file, unsigned int line, const char * tag, const char * condition, const std::string & msg)

    Defined at line 152 of file ../../sdk/lib/syslog/cpp/host/logging_backend.cc

  • zx::result<> FlushToGlobalLogger (LogBuffer & buffer)

    Flushes `buffer` to the global logger.

    Defined at line 199 of file ../../sdk/lib/syslog/cpp/host/logging_backend.cc

  • RawLogSeverity GetMinLogSeverity ()

    Defined at line 197 of file ../../sdk/lib/syslog/cpp/log_message_impl.h

  • bool IsSeverityEnabled (RawLogSeverity severity)

    Returns true if |severity| is at or above the current minimum log level.

    LOG_FATAL and above is always true.

    Defined at line 202 of file ../../sdk/lib/syslog/cpp/log_message_impl.h