Results 1 to 2 of 2
  1. #1
    Bearded_Bear is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default Log4j Level question

    I wasn't sure if this was more appropriate for New to Java or Advanced Java, but here goes:

    Is there any easy way to change the name of a Level or how the level displays in the log file?

    Ex. Changing ERROR to something like XERROR.

    25063 2011-02-08 00:30:27,847 ERROR Logging info

    to

    25063 2011-02-08 00:30:27,847 XERROR Logging info

    I ask this because we currently log information for a lot of files, many of which have "error" in their name, making searches for actual errors difficult for our client.

  2. #2
    Bearded_Bear is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default

    So I just told the client to use a case sensitive search of ERROR since none of the logged information is all caps.

    This is no longer really an issue, but if anybody is bored and wants to chime in to appease my curiosity (and answer this question for any user later on), feel free.

Similar Threads

  1. log4j RollingFileAppender question
    By vasanthj in forum Advanced Java
    Replies: 2
    Last Post: 01-12-2011, 05:38 PM
  2. log4j RollingFileAppender question
    By vasanthj in forum Advanced Java
    Replies: 0
    Last Post: 12-07-2010, 09:07 PM
  3. Log4J Question <moved>
    By razorSpirit in forum New To Java
    Replies: 2
    Last Post: 10-13-2010, 11:33 PM
  4. Replies: 5
    Last Post: 08-22-2010, 10:04 PM
  5. How to disable one particular Log.Level in log4j
    By bhupal4all in forum Advanced Java
    Replies: 0
    Last Post: 11-25-2008, 08:43 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
  •