-
June 14th, 2018, 12:43 PM
#1
Log file setting to show only errors on Log
I need to check only errors in my log file. Now my log file creating errors, warning and all. I need to show only errors on my log file. Is there any way to set condition to store only errors on log file. I need to set this condition on my config file.
-
June 15th, 2018, 09:57 AM
#2
For this matter Lightstreamer entirely delegates to logback and leans on its features.
Our suggestion it to set a filter on the appender that manages your log file, rather than reconfiguring all loggers, so that you can switch to a more verbose log easily when needed.
This means adding inside the appender definition the following:
<filter class="ch.qos.logback.classic.filter.ThresholdFilt er">
<level>error</level>
</filter>
(if you copy that, please be aware that the formatting may introduce spurious spaces).
You can also see an example in the factory log configuration file.
At the beginning of the definition of the LSDailyRolling appender, you can see a filter commented out.
Similar Threads
-
By faa666 in forum General
Replies: 1
Last Post: February 15th, 2012, 09:54 AM
-
By colmfield in forum Client SDKs
Replies: 4
Last Post: September 21st, 2010, 12:11 PM
-
By riwang in forum Client SDKs
Replies: 29
Last Post: June 28th, 2010, 12:56 PM
-
By GoatHunter in forum General
Replies: 2
Last Post: August 25th, 2009, 11:54 AM
-
By tuongkha in forum Adapter SDKs
Replies: 5
Last Post: February 12th, 2008, 04:00 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:02 AM.
Bookmarks