Classes | |
class | ALox |
class | ALoxReportWriter |
class | ESC |
class | Log |
class | Lox |
Enumerations | |
enum | Scope { Global, ThreadOuter, Filename, Method, ThreadInner, Path } |
enum | Verbosity { Verbose, Info, Warning, Error, Off } |
|
strong |
These are definitions which are used as a parameter to certain ALox methods to denote the Scope of a setting. Scopes are dependent of the programming language and hence differ slightly from each other in the different versions of ALox.
|
strong |
This enum is used in ALox to control the 'verbosity' or 'verboseness' of the log output. The values herein - apart from special value 'Off' - are sorted in the following order
A value of this set is provided to ALox in two different ways: First, all methods of class Lox that execute a log operation assign a value of this enum to the Log Statement. Secondly, methods Lox.SetVerbosity, are defining the 'accepted' minimal Verbosity for a pair of <Logger/Log Domain>.
ALox, when executing a statement, checks both values against each other. A Log Statement is executed, when the <Logger/Log Domain> setting is set to the same or a 'higher level'. For example if a <Logger/Log Domain> setting is Warning, then Log Statements with associated Verbosity Warning and Error are executed and those with Info and Verbose are suppressed.
If special value Off is used with Lox.SetVerbosity, all logging is switched Off for this pair of <Logger/Log Domain>.
Some of the Log Statements accept the parameter directly (e.g. Lox.Entry, Lox.Once and Lox.If), others inherently use the right value as their method name suggests (e.g. Lox.Error, Lox.Warning, Lox.Info, Lox.Verbose and Lox.Assert). The latter group of methods do not support parameter Off.
If special value Off is used with those Log Statements, that allow to specify the Verbosity as a parameter, the Log Statement is never executed This is useful if the parameter is determined at runtime, depending on the state of an application.
Enumerator | |
---|---|
Verbose | The 'highest' level of Verbosity. Statements with this value associated are logged only if a Log Domain is set to Verbose as well. |
Info | The standard Verbosity for normal log output statements. Logged if a Log Domain is set to Info or Verbose. |
Warning | A Verbosity for warning messages, hence things that might lead to errors or are not welcome for other reasons, but maybe are not errors. |
Error | A Verbosity for error messages. It is suppressed only if a Log Domains' setting is Off. |
Off | Statements with this value associated are never logged (useful if Verbosity is evaluated at runtime). Log Domains with this setting do not execute any Log Statement. |