Menu

Message Threshold

Help
2004-10-29
2013-04-09
  • Nobody/Anonymous

    I'm trying to configure LOG4PLSQL.  My evetual aim is to ensure that only messages of ERROR and above get written to my SyslogAppender. 

    At the moment I'm just trying to filter stuff to a straightforward FileAppender. But if I set the Threshold property in log4j.properties /nothing/ gets written to the file.  If I remove the Threshold line it writes. 

    So, am I getting this wrong or does Log4Plsql not support thresholds?  If the latter, is there some other way I can acheive my objective?

    Cheers, APC

    ###############################################################################
    # File appender.                                                              #
    ###############################################################################

    # Appender A2 writes to the file ".\log\log4plsql.log".
    log4j.appender.A2=org.apache.log4j.FileAppender
    log4j.appender.A2.File=.\\log\\log4plsql.log

    # Truncate 'log4plsql.log' if it aleady exists.
    #log4j.appender.A2.Append=false
    log4j.appender.A2.Append=true

    # Appender A2 uses the PatternLayout.
    log4j.appender.A2.layout=org.apache.log4j.PatternLayout

    # standard information
    log4j.appender.A2.layout.ConversionPattern=%d %-5p (%c) - %m [%x]%n

    # only write to file with errors or higher...
    log4j.appender.A2.Threshold=ERROR

     

     
    • Manuel Romeiro

      Manuel Romeiro - 2004-11-08

      hi,

      replace
      log4j.appender.A2.Threshold=ERROR

      by

      log4j.logger.A2=ERROR

       

Log in to post a comment.