<cAppLog>.Level

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > AppLog > cAppLog Class > <cAppLog> Properties >

<cAppLog>.Level

 

Mechanism to further specify the log levels emitted by the logger.

 

That means, while your program can continue to have code to emit messages at any level, only levels matching the settings (interval of minimum/maximum, exact level) will produce output.

 

Imagine you have a production application, it will typically log minimally - for example just info level. But then user reports issue, and you can have ready a command line switch, which will turn the logging on for all levels, to help identify possible issue.

 

The available levels are:

%appLog_Level_Trace

%appLog_Level_Debug

%appLog_Level_Info

%appLog_Level_Warn

%appLog_Level_Error

%appLog_Level_Fatal