Re: log4j2 how to write a wrapper that passes the class name of my own

2014-11-02 Thread Remko Popma
ion server > > > that uses it's own logger with a wrapper for log4j 1.2, slf4j or JUL. > > > > > > To be able to log method names and line numbers, the log4j 1.2 wrapper > > > currently passes the class name of the Logger to the log() method to > > >

Re: log4j2 how to write a wrapper that passes the class name of my own

2014-11-02 Thread Alexander Lehmann
To be able to log method names and line numbers, the log4j 1.2 wrapper > > currently passes the class name of the Logger to the log() method to > > make it possible to log the correct method, otherwise only the log > > method of the wrapper class is logged. > > I am not able to figure

Re: log4j2 how to write a wrapper that passes the class name of my own

2014-10-26 Thread Remko Popma
pper > currently passes the class name of the Logger to the log() method to > make it possible to log the correct method, otherwise only the log > method of the wrapper class is logged. > I am not able to figure out how to do that with log4j2 where the log > methods do not have a pa

log4j2 how to write a wrapper that passes the class name of my own

2014-10-26 Thread Alexander Lehmann
I am trying to write a log wrapper for log4j2 for a application server that uses it's own logger with a wrapper for log4j 1.2, slf4j or JUL. To be able to log method names and line numbers, the log4j 1.2 wrapper currently passes the class name of the Logger to the log() method to ma

Convenient way to append Class Name in Syslog Appender

2013-06-03 Thread Jason B
Is there a convenient way to retrieve the class name in the Syslog appender? If not, I could engineer my own solution - I was unsure if this was already captured in another bug report or feature request. ~Jason

Re: Defined log4j.properties file but getting - No appenders could be found for logger (... class name) - Please intialize the log4j system properly

2008-07-01 Thread Rashmi
der : >> C:\dev\apache-tomcat-6.0.14\shared\lib\ so that it is visible across >> all projects >> >> The logging was working the first time when I set it up, but I made a >> series of changes that are hard to trace back and now I get >> No appenders could be found

Re: Defined log4j.properties file but getting - No appenders could be found for logger (... class name) - Please intialize the log4j system properly

2008-07-01 Thread Jacob Kjome
ible across all projects The logging was working the first time when I set it up, but I made a series of changes that are hard to trace back and now I get No appenders could be found for logger (... class name) - Please intialize the log4j system properly when I invoke public static Lo

Defined log4j.properties file but getting - No appenders could be found for logger (... class name) - Please intialize the log4j system properly

2008-07-01 Thread Rashmi
et No appenders could be found for logger (... class name) - Please intialize the log4j system properly when I invoke public static Logger logger = Logger.getLogger(AClass.class); logger.debug("a message"); Please let me know if there are any errors in the above log4j.properties fi

RollingFileAppender to pick up dynamically logfile name from Logger class name instead of static file name

2005-11-17 Thread Smita Agarwal
Hi, Can someone please help me. I am using RollingFileAppender to log messages to log file. But I don't want to specify the name of the file to log to. Instead I want the appender to pick up the name from the Logger class name. For eg. if Logger.class.getName() returns abc.xyz.apple So i

Re: class name

2005-11-04 Thread Jacob Kjome
At 10:51 AM 11/4/2005 -0800, you wrote: >Is there any difference, advantage, etc. by doing > >Logger logger = Logger.getLogger(MyClass.class); > >versus doing > >Logger logger = Logger.getLogger(MyClass.class.getName()); > >I've seen it both ways in documentation and examples and b

class name

2005-11-04 Thread rusty+commons
Is there any difference, advantage, etc. by doing Logger logger = Logger.getLogger(MyClass.class); versus doing Logger logger = Logger.getLogger(MyClass.class.getName()); I've seen it both ways in documentation and examples and both seem to work the same way. --

java.lang.IllegalArgumentException: Not a valid Java identifier: class name

2005-05-19 Thread Néstor Boscán
Hi I'm trying to work with the org.apache.log4j.jmx.LoggerDynamicMBean MBean and after I pass the Logger object I get: java.lang.IllegalArgumentException: Not a valid Java identifier: class name at javax.management.MBeanInfo.mustBeValidJavaIdentifier(MBeanInfo.java:478)

log4j does not show Class Name, Method, or Line Number on AS400

2005-04-21 Thread aedemar.cooke
Hi, I am following up http://issues.apache.org/bugzilla/show_bug.cgi?id=15585 which addresses the issue where log4j does not show Class Name, Method, or Line Number on AS400. I added the suggested code and created a new jar. All works fine on classes that I invoke within QSHELL with

Re: Error! No class name attribute in

2005-03-09 Thread Aswin Asokan
> 0 [main] ERROR org.apache.log4j.joran.action.NestComponentIA - No > class name attribute in > > I am using JoranConfigurator. Code snippet: > >>> > JoranConfigurator logConfigure = new JoranConfigurator(); > logConfigure.doConfigure("Log4J.xml", LogManager.ge

Error! No class name attribute in

2005-03-08 Thread Aswin Asokan
Hi, I am getting this error while trying to use a custom render. 0 [main] ERROR org.apache.log4j.joran.action.NestComponentIA - No class name attribute in I am using JoranConfigurator. Code snippet: >>> JoranConfigurator logConfigure = new JoranConfigurator(); logConfigure.do

Class name and file remplaced by ?

2004-04-12 Thread Godin, Philippe
Good day, The javadoc of the PatternLayout class indicates that a %F and %L conversion specifiers can be used to output the file and line where the log statement was issued. We are aware that using these specifiers can grealty reduce the speed of the logging but we still would find it

AW: Getting the current class name in static code

2004-03-03 Thread gyoergy.magoss
1) I found at http://www.rgagnon.com/ Regards Gyoergy -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Montag, 1. März 2004 04:51 An: [EMAIL PROTECTED] Betreff: Getting the current class name in static code From: [EMAIL PROTECTED] To: [EMAIL PROTE

RE: Getting the current class name in static code

2004-03-02 Thread Jim Moore
From: Stephen Chell (DSL AK) [mailto:[EMAIL PROTECTED] Sent: Sunday, February 29, 2004 10:51 PM To: 'Log4J Users List' Subject: Getting the current class name in static code In log4j a popular way to name loggers is to name them by software component. This can be performed by static

Getting the current class name in static code

2004-02-29 Thread Stephen Chell (DSL AK)
in the new class name. (Ideally Java needs a static equivalent of "this" to refer to the current class.) Cheers Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]