Class log#
Defined in File log.h
Class Documentation#
-
class log#
Class used to show logs in F3D.
A class to output logs to the standard output. It supports different levels, errors, warnings and info, with associated coloring. A few static methods exists to control the coloring and the verbosity level
Public Types
-
enum class VerboseLevel : unsigned char#
Enumeration of verbose levels#
DEBUG: All logs are displayed, including from third parties. INFO: Standard logging level, the default. WARN: Only warnings and errors are displayed. ERROR: Only errors are displayed. QUIET: Logging is fully disabled.
Values:
-
enumerator DEBUG#
-
enumerator INFO#
-
enumerator WARN#
-
enumerator ERROR#
-
enumerator QUIET#
-
enumerator DEBUG#
Public Static Functions
-
template<typename ...Args>
static inline void print(VerboseLevel level, Args... args)# Log provided args as provided verbose level.
-
static void setUseColoring(bool use)#
Set the coloring usage, if applicable (eg: console output).
-
static void setVerboseLevel(VerboseLevel level, bool forceStdErr = false)#
Set the verbose level. By default, only warnings and errors are written to stderr, debug and info are written to stdout. If forceStdErr is true, all messages including debug and info are written to stderr.
-
enum class VerboseLevel : unsigned char#