Relevent calss in logback for the class org.apache.log4j.helpers.LogLog in log4j

Hi, I am updating my project to use logback instead of log4j. In few places "LogLog" class has been used to print the log. Ex: org.apache.log4j.helpers.LogLog.error("Logger failed to log"); Please let me know which class i can you use in logback to get the same result. Thanks in Advance....! Regards, Reddy -- View this message in context: http://logback.10977.n7.nabble.com/Relevent-calss-in-logback-for-the-class-o... Sent from the Users mailing list archive at Nabble.com.

LogLog is for use within log4j code. Any particular reason you are using it? On 12 Jun 2013, at 07:16, Govardhana <jgovardhana@gmail.com> wrote:
Hi,
I am updating my project to use logback instead of log4j. In few places "LogLog" class has been used to print the log.
Ex: org.apache.log4j.helpers.LogLog.error("Logger failed to log");
Please let me know which class i can you use in logback to get the same result.
Thanks in Advance....!
Regards, Reddy
-- View this message in context: http://logback.10977.n7.nabble.com/Relevent-calss-in-logback-for-the-class-o... Sent from the Users mailing list archive at Nabble.com. _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

can anyone please help me here....! Regards, Reddy -- View this message in context: http://logback.10977.n7.nabble.com/Relevent-calss-in-logback-for-the-class-o... Sent from the Users mailing list archive at Nabble.com.

Sure. Tell us why you are using LogLog instead of Logger and maybe someone can suggest an alternative. Without that information all I can suggest is that use Logger. David On 13 Jun 2013, at 08:35, Govardhana <jgovardhana@gmail.com> wrote:
can anyone please help me here....!
Regards, Reddy
-- View this message in context: http://logback.10977.n7.nabble.com/Relevent-calss-in-logback-for-the-class-o... Sent from the Users mailing list archive at Nabble.com. _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Hi David, During startup before we read application context( when singleton object is creating/initializing ), error will go to System.err then they will be off. This has given some internal log4j error problem. So it has been changed to LogLog.error("msg"). This same thing i have implement by using logback. Regards, Reddy -- View this message in context: http://logback.10977.n7.nabble.com/Relevent-calss-in-logback-for-the-class-o... Sent from the Users mailing list archive at Nabble.com.

we are using customer logger wrapper class. This wrapper class will not be initialized by the time of starting up the application. Before this we are trying to log "error logs", So we used LogLog.Error[using log4j]. Please suggest how to implement the same by using logback?? Regards, Govardhana -- View this message in context: http://logback.10977.n7.nabble.com/Relevent-calss-in-logback-for-the-class-o... Sent from the Users mailing list archive at Nabble.com.

Reddy, For logging before the logger is initialised, I tend to just write to System.err. Logback has internal API for startup messages, but it's not exposed to outside classes, and is not part of slf4j. David
participants (2)
-
David Roussel
-
Govardhana