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 A waitForUser utility static method exist for windows.
Public Types
-
enum class VerboseLevel : unsigned char#
Enumeration of verbose levels#
DEBUG: All logs are displayed. 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)#
Set the verbose level.
-
static void waitForUser()#
Wait for user if applicable (eg: win32 output window). No effect otherwise.
-
enum class VerboseLevel : unsigned char#