Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { // When logging to file this file will be used. FilePath string // Makes FilePath threaded as an dir and names logfiles to what this function returns. DynamicFileName func() string // Mapping of Vebosities to set allowed verbosities and their priority. Verbosities Verbosities // Minimal verbose priotity to log message to CLI. VerboseToCLI int // Minimal verbose priotity to log message to file. VerboseToFile int // When true logged messages will be prepended with the date time. AppendDateTime bool // When true logged messages will be prepended with the verbosity. AppendVerbosity bool // Prepent every log message to CLI. PrepentCLI string // Hook to call after an message has been logged to CLI. MessageCLIHook func(msg string) // Minimal char space a message part will take up. CharCountPerMsg int // Minimal char space the verbosity part will take up (AppendVerbosity must be true to take effect). CharCountVerbosity int // When true RecordSepperator and EORSepperator are used when loggin to file, otherwise log the raw message. UseSeperators bool // Seperator string between message parts when logging to file (Logged message can not contain this string). RecordSepperator string // End of record string after a message when logging to file (Logged message can not contain this string). EORSepperator string }
type Verbosities ¶
Click to show internal directories.
Click to hide internal directories.