Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Log level "always"


#1

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


#2

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);


#3

Thanks for response, I’ll try to use the way you showed.

best regards
Piotr Rezmer


#4

Great. Please let me know if you have any further questions about this.