Documentation for Jinni File: loqProps.pro
This module keeps the varying Loq4Jinni properties.
Use the following for the later-to-come feature of automated gui-based changing of the this loq properties by writing this very same file which is modified according to the settings the user has provided thru a GUI. Generate the file with the following statements:
then you only need to renew it as usual.
Date: June, 2003
determines which default exception list should be active; [none] is the minimum
Indicates the path of the file Loq4Jinni is supposed to write to. When it is set to none, which is the default, the output is streamed to the console window.
Forms: level(DefaultLevel, ?LevelValue)
determines whether or not the logger will be active for the rsp. perspective (incl. hierarchical log level 0..3); a perspective with level L includes all levels below it. The current levels are known:
One can add further levels to accomodate more refined level distinction depending on ones current rsp. requirements. In any case the level values need to be kept consistent.
- none: expresses sth. that provides no information
- sys: expresses sth. that is low-level information
- info: expresses sth. that provides information
- warn: expresses sth. that perhaps needs to be printed
- error: expresses sth. that needs to be printed
determines which default activity level should be active either none,info, warning or error; none switches the logger off
each time one modifies the values of the properties kept in this module, a call of renew(loqProps,_) is required to date up the module instance within the current Jinni session, which is all one needs to do. See the documentation of loq, Loq4Jinnis main module, for further details. NOTE: try for the next version the following idea. Because loqProps is a module we can set the loqActivity and the exceptionList by using class variables. Fully analogously with key.pro, we can then initialize the module by using :-initialization(renew(loqProps(LoqActivity,ExceptionList),_)) or by calling new(loqProps(LoqActivity,ExceptionList),_) once at JEdits startup time where LoqActivity and ExceptionList are concrete instances. The advantage is we could then provide a JinniConsole menu where you can select the loqActivity/exceptionList because we could simply call renew(loqProps(LoqActivity,ExceptionList),_) without needing to set the concrete instances in the loqProps file.
Serves to get a list of currently allowed default levels in order to check if a correct activity level has been entered. Date up when level/2 is modified.
JinniDoc © 2003-2005 Chico Toepfer