Subscribe to forum RSS Forum

log level "always"

New Topic Post Reply

Page: 1

Author Post
Piotr Rezmer
Guest
Hello,
Is there any way to use message level like syslog style "always"? I need this level to store important messages regardless of active log level. However I don't want to use high level like FATAL, since the message is not FATAL but important.

best regards
Piotr Rezmer
Administrator
Registered: Sep 2007
Posts: 134
Hello Piotr,

There's currently no 'always' log level. I added it to the feature request list. What you can do in this case today is to use the 'control' log level. This log level is actually intended for control command packets (for example, for resetting the Console), but could also be used to emulate an 'always' log level. This can look as follows (in Delphi, for example):

Si.Level := lvFatal;
SiMain.LogCustomText(lvControl, 'Will always be logged', 'Details..',
ltMessage, viTitle);
Member
Registered: Dec 2007
Posts: 35
Location: Poland
Thanks for response, I'll try to use the way you showed.

best regards
Piotr Rezmer
Administrator
Registered: Sep 2007
Posts: 134
Great. Please let me know if you have any further questions about this.

New Topic Post Reply

Page: 1