Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    74

    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.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    958
    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

  1. Current delay in log file
    By faa666 in forum General
    Replies: 1
    Last Post: February 15th, 2012, 09:54 AM
  2. Log file error
    By colmfield in forum Client APIs
    Replies: 4
    Last Post: September 21st, 2010, 12:11 PM
  3. Sync errors in server log
    By riwang in forum Client APIs
    Replies: 29
    Last Post: June 28th, 2010, 12:56 PM
  4. How can I limit the log file size ?
    By GoatHunter in forum General
    Replies: 2
    Last Post: August 25th, 2009, 11:54 AM
  5. Replies: 5
    Last Post: February 12th, 2008, 04:00 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:44 AM.