Just to make sure I understand:

The statement is completely correct when going to "LightSpeed_Default"
appender; but then everything going to the "LightSpeed_Console" appender
displays the characteristics you mention?  Is it every message that you log
to the console appender?

If so, my guess is that JBOSS is catching System.out/System.err and handling
those itself.  Never dealt with JBOSS.  Have you asked this question on
their mailing list?




    |-----Original Message-----
    |From: Corbin, James [mailto:[EMAIL PROTECTED]
    |Sent: Tuesday, March 04, 2003 10:20 AM
    |To: Log4J Users List
    |Subject: RE: Help with Logging (1.2.7)
    |
    |
    |
    |Thanks for the suggestion.  I already have all loggers 
    |additivity set to
    |false, but my logging to the category still is appended to 
    |a JBOSS INFO
    |message before being displayed.
    |
    |I must be doing something fundamentally wrong.  Does 
    |anyone have a clue?
    |
    |I've read all the threads about this from the archive.  It 
    |has given me some
    |insight, but hasn't addressed my issue.
    |
    |Can somebody explain why I see the following behavior:
    |
    |JBOSS logging setup to log to console and file.  I define 
    |a new category in
    |my application logging config file then attach new console 
    |and file appender
    |to the category.  My application then logs to the 
    |category.  If I make the
    |following call: myCategory.debug( "sometext" );
    |
    |Why does this get appended to a [INFO] message before 
    |being displayed to the
    |console.  This is not an additivity issue as I only get 
    |one entry in the
    |log.
    |
    |If someone could help me understand why I see log entries 
    |like the following
    |with my setup I might be able to fix it.  Where is the 
    |"09:20:47,919 INFO
    |[STDOUT]" coming from????  Everything after that is the 
    |data from my call to
    |log to the category.
    |
    |09:20:47,919 INFO  [STDOUT] 09:20:47,919,MyCategory        
    |[INFO ] -
    |========> setSuccessfulForward = /SendHouseList
    |
    |
    |-----Original Message-----
    |From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
    |Sent: Tuesday, March 04, 2003 7:13 AM
    |To: Log4J Users List
    |Subject: RE: Help with Logging (1.2.7)
    |
    |
    |Howdy,
    |Set additivity to false for all your loggers, or 
    |alternatively for the
    |root logger.
    |
    |Yoav Shapira
    |Millennium ChemInformatics
    |
    |
    |>-----Original Message-----
    |>From: Corbin, James [mailto:[EMAIL PROTECTED]
    |>Sent: Monday, March 03, 2003 6:30 PM
    |>To: Log4J Users List
    |>Subject: RE: Help with Logging (1.2.7)
    |>
    |>
    |>That would work, but I forgot to mention that our application is
    |deployed
    |>on
    |>multiple server vendors and not just JBOSS.  If it were, I would
    |definitely
    |>not need to have a application specific configuration file.
    |>
    |>J.D.
    |>
    |>-----Original Message-----
    |>From: Rafal Kedziorski [mailto:[EMAIL PROTECTED]
    |>Sent: Monday, March 03, 2003 4:08 PM
    |>To: Log4J Users List
    |>Subject: Re: Help with Logging (1.2.7)
    |>
    |>hi,
    |>
    |>why don't You use the log4j included to JBoss? I'm 
    |working with this
    |and it
    |>works fine.
    |>
    |>
    |>Rafal
    |>
    |>At 16:39 03.03.2003 -0500, Corbin, James wrote:
    |>
    |>>I am using Log4j version 1.2.7 as my application logging 
    |framework
    |running
    |>>on a JBOSS app server.
    |>>
    |>>The only issue I have run into is trying to define a separate
    |>configuration
    |>>file that when loaded doesn't interfere with the one 
    |loaded at server
    |>>startup by JBOSS.  Therefore, I created the following 
    |configuration
    |file
    |>>which creates a category and my application logs to the category.
    |This
    |>>works as I've mentioned in previous emails, but the console log
    |appends my
    |>>messages to an INFO message (from JBOSS configuration?).  I've
    |included a
    |>>log entry to demonstrate my issue:
    |>>
    |>>14:36:14,648 INFO  [STDOUT] 14:36:14,648,LightSpeed      
    |  [DEBUG] -
    |some
    |>>message text....
    |>>
    |>>My category name is LightSpeed.  Notice how the [DEBUG] 
    |message is
    |>appended
    |>>to a INFO [STDOUT] message?  I assume this is coming 
    |from the JBOSS
    |>>configuration of Log4j.
    |>>
    |>>************Application Specific Configuration File *************
    |>>
    |>>## The server.log file appender for LightSpeed
    |>>log4j.category.LightSpeed=DEBUG, LightSpeed_Console,
    |LightSpeed_Default
    |>>log4j.additivity.LightSpeed=false;
    |>>log4j.appender.LightSpeed_Default=org.apache.log4j.Rollin
    |gFileAppender
    |>>log4j.appender.LightSpeed_Default.File=server.log
    |>>log4j.appender.LightSpeed_Default.MaxFileSize=500KB
    |>>log4j.appender.LightSpeed_Default.MaxBackupIndex=1
    |>>log4j.appender.LightSpeed_Default.layout=org.apache.log4j
    |.PatternLayou
    |t
    |>>#log4j.appender.LightSpeed_Default.layout.ConversionPatte
    |rn=%d %-5p
    |[%t]
    |>>%-17c{2} (%13F:%L) %3x - %m\n
    |>>#log4j.appender.LightSpeed_Default.layout.ConversionPatte
    |rn=[%d{ABSOLU
    |TE},
    |>%
    |>c
    |>>{1}] %m%n
    |>>log4j.appender.LightSpeed_Default.layout.ConversionPatter
    |n=%d{ABSOLUTE
    |},%-
    |>1
    |>7
    |>>c [%-5p] - %m%n
    |>>
    |>>log4j.appender.LightSpeed_Console=org.apache.log4j.Consol
    |eAppender
    |>>log4j.appender.LightSpeed_Console.layout=org.apache.log4j
    |.PatternLayou
    |t
    |>>log4j.appender.LightSpeed_Console.layout.ConversionPatter
    |n=%d{ABSOLUTE
    |},%-
    |>1
    |>7
    |>>c [%-5p] - %m%n
    |>>
    |>>  _____
    |>>
    |>>         J.D. Corbin
    |>>Architecture and Emerging Systems
    |>>Starwood Technology and Revenue Systems
    |>>9285 Teddy Lane, Suite 230
    |>>Lone Tree, CO 80124
    |>>
    |>>Phone: 303.790.9551
    |>>Fax:    303.790.9550
    |>>
    |>>
    |>>[EMAIL PROTECTED]
    |>>
    |>>   _____
    |>>
    |>>
    |>>This electronic message transmission contains 
    |information from the
    |Company
    |>>that may be proprietary, confidential and/or privileged.
    |>>The information is intended only for the use of the 
    |individual(s) or
    |>>entity named above.  If you are not the intended recipient, be
    |>>aware that any disclosure, copying or distribution or use of the
    |contents
    |>>of this information is prohibited.  If you have received
    |>>this electronic transmission in error, please notify the sender
    |>>immediately by replying to the address listed in the 
    |"From:" field.
    |>>
    |>>
    |>>---------------------------------------------------------
    |------------
    |>>To unsubscribe, e-mail: [EMAIL PROTECTED]
    |>>For additional commands, e-mail: 
    |[EMAIL PROTECTED]
    |>
    |>
    |>----------------------------------------------------------
    |-----------
    |>To unsubscribe, e-mail: [EMAIL PROTECTED]
    |>For additional commands, e-mail: 
    |[EMAIL PROTECTED]
    |>This electronic message transmission contains information from the
    |Company
    |>that may be proprietary, confidential and/or privileged.
    |>The information is intended only for the use of the 
    |individual(s) or
    |entity
    |>named above.  If you are not the intended recipient, be
    |>aware that any disclosure, copying or distribution or use of the
    |contents
    |>of this information is prohibited.  If you have received
    |>this electronic transmission in error, please notify the sender
    |immediately
    |>by replying to the address listed in the "From:" field.
    |>
    |>
    |>----------------------------------------------------------
    |-----------
    |>To unsubscribe, e-mail: [EMAIL PROTECTED]
    |>For additional commands, e-mail: 
    |[EMAIL PROTECTED]
    |
    |
    |
    |
    |This e-mail, including any attachments, is a confidential business
    |communication, and may contain information that is 
    |confidential, proprietary
    |and/or privileged.  This e-mail is intended only for the 
    |individual(s) to
    |whom it is addressed, and may not be saved, copied, 
    |printed, disclosed or
    |used by anyone else.  If you are not the(an) intended 
    |recipient, please
    |immediately delete this e-mail from your computer system 
    |and notify the
    |sender.  Thank you.
    |
    |
    |-----------------------------------------------------------
    |----------
    |To unsubscribe, e-mail: [EMAIL PROTECTED]
    |For additional commands, e-mail: [EMAIL PROTECTED]
    |This electronic message transmission contains information 
    |from the Company that may be proprietary, confidential 
    |and/or privileged.
    |The information is intended only for the use of the 
    |individual(s) or entity named above.  If you are not the 
    |intended recipient, be
    |aware that any disclosure, copying or distribution or use 
    |of the contents of this information is prohibited.  If you 
    |have received
    |this electronic transmission in error, please notify the 
    |sender immediately by replying to the address listed in 
    |the "From:" field.
    |
    |
    |-----------------------------------------------------------
    |----------
    |To unsubscribe, e-mail: [EMAIL PROTECTED]
    |For additional commands, e-mail: [EMAIL PROTECTED]
    |

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to