Skip to content

Log constructor

Virga edited this page Sep 18, 2022 · 1 revision

CPPSLL is a class that isn't purely static functions because different users will have different preferences, and to remember those preferences CPPSLL exists as a class that is actually useful to instantiate.

The options given to the user are decided by the constructor function, there are currently 3 boolean settings available.

The first setting is whether or not CPPSLL should output Debug() calls, this is done so that end users of a program won't have to deal with random debug messages when they're not needed. This setting is set to true by default.

The second setting is whether or not CPPSLL should output Error() calls to stdout instead of stderr. This is generally not recommended but if you run into a problem where error messages are not being displayed properly but other things are, this might help. This setting is set to false by default.

The third setting is whether or not CPPSLL will display the time a call gets made. This setting is set to true by default.

Clone this wiki locally