Serenity Logger
A very fast and effiecient logging library. This library currently can log to files, rotate files when logging, log to the terminal, and is aware if the terminal is being piped during logging.
serenity::experimental Namespace Reference

This namespace holds functions or features still being worked on.

Classes

class  Flush_Policy
 This class controls when and how logging target contents should be flushed. More...
 
struct  PeriodicSettings
 This struct holds the actual values used for when the serenity::experimental::Flush value periodically is set and is based on what the serenity::experimental::PeriodicOptions value enabled is. More...
 
struct  RotateSettings
 Struct that holds and controls different rotation settings specific to the RotatingTarget class. More...
 

Enumerations

enum class  Flush { always , periodically , never }
 This enum encapsulates the values for how flushing should be done. More...
 
enum class  PeriodicOptions { timeBased , logLevelBased , undef }
 This enum encapsulates the values for when flushing should be done if the serenity::experimental::Flush value of periodically has been set. More...
 

Enumeration Type Documentation

◆ Flush

enum class serenity::experimental::Flush
strong
Enumerator
always 

This value is used to always flush contents after a log message is made.

periodically 

This value is used to flush contents after a log message is made based on a threshold.

never 

This value is used to never flush when a log message is made. This option will defer flushing until the handle's buffer is full or when the destructor is called.

◆ PeriodicOptions

Enumerator
timeBased 

This value enables flushing on a set wall-clock interval (default value is 500ms).

logLevelBased 

This value enables flushing once a message level threshold has been reached. (default value is LoggerLevel::trace).