log4j 2 « log4j « Java Enterprise Q&A





1. Log4j Warning while initializing?    stackoverflow.com

I am trying to learn about log4j so I just tried to do something which is very simple;

Logger logger = Logger.getLogger("ClientApplicationLog");
logger.info("Logger Test");
But after making this I got;
log4j:WARN No appenders could be ...

2. Log4J at Request Scope    stackoverflow.com

Before writing this query, I reviewed similar queries at:

I felt my query sounds ...

3. why cant i start log4j (newbie)    stackoverflow.com

Im already running morphia over mongDb in eclipse win7 64bit.
reading about the log4mongo here:
http://log4mongo.org/display/PUB/Log4mongo+for+Java
following the steps but get this:

log4j:ERROR Could not instantiate class [com.google.code.log4mongo.MongoDbAppender].
    ...

4. Changes to Log4j categories/loggers effect eachother    stackoverflow.com

I have a logging problem with log4j. I am using the configureAndWatch to make log4j poll the following config occasionnaly and update what logging is done:

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    <!-- ...

5. Log4j, patternLayout, class and category    stackoverflow.com

I am having trouble establishing the exact difference between using those two log4j conversion characters when used in a log4j PatternLayout (log4j patternLayout)

  • category (%c)
  • class (%C)
Can someone please give me ...

6. log4j - Is there a feature to provide auto-numbering?    stackoverflow.com

I would like to ask if log4j provides auto numbering feature to each log appended? For example:

1 Message test A.
2 Message test B.
3 Message test C.

7. log4j - Access environment variables    stackoverflow.com

I put the following environment variable in the CATALINA.BAT

set "APACHE_WEB_DIRECTORY=C:/wamp/www/DuInvestColombo"
i tried to access the variable as follow
apacheWebDirectory=${APACHE_WEB_DIRECTORY}
but it didn't work, logs did not writtent to the directory
log4j.appender.applicationLogsFileAppender.File=${apacheWebDirectory}/ApplicationLogs.log
what is the correct way ...

8. Is possible to change the forecolor of log4j?    stackoverflow.com

I am using Apache log4j with XML based configuration.i want to know is it is possible to change the color of font with different level of log4j. Thanks

9. Can log4j be initialized in a EJB-module using the default initialization procedure?    stackoverflow.com

In a web-module you can place the log4j.properties on the classpath and log4j's default initialization procedure will use the config, same in a standalone app, no problems here. I have though trouble ...





10. how to use log4j in Multithread using java?    stackoverflow.com

I want to write log for each thread using log4j and log file name will be "workthread..log",first thread print log on file "workthread-1.log" and second thread on "workthread-2.log" and so on.

class ...

11. log4j null pointer exception    stackoverflow.com

Please ignore my ignorance with log4j and java. I am new and will appreciate all advice and any resource you can point me to. I inherited some code and I'm not ...

12. Issue regarding log4j    bytes.com

Thank you umbr for your suggestion, but what should I do if I want to create logger at runtime ? My thread count ( hence logger ) are configurable hence I ...

13. Log4J and Stripes Framework    bytes.com

kokababu Hi, I have to add Log4J's JDBCAppender with Stripes Framework. So I created commons-loggin.properties and log4j.properties inside WEB-INF\CLASSES\ directory. My log4J.properties contains: log4j.rootLogger=debug,R log4j.appender.R.Driver=com.mysql.jdbc.Driver log4j.appender.R=org.apache.log4j.jdbc.JDBCAppende r log4j.appender.R.URL=jdbc:mysql://localhost:3306/test log4j.appender.R.user=root log4j.appender.R.password=root log4j.appender.R.sql=INSERT ...

14. Log4J and web start    coderanch.com

Hi all, We have written a standalone swing application that uses Log4j to create some log files on the client's machine. Now, we are thinking about distributing this application on the web. We were successful in having it run using Java web start 1.2. We have the following problem: These logs are no longer useful since each client downloads the jar ...

15. RMI with Log4J    coderanch.com

Hey Y'all, So here's my little story... We're building a fairly large app Servlet/Applet Our servlet classes all uses log4j with no problems. obviously this couldn't be that perfect so when I tried to do some RMI call to the classes on the Server the Log4J class aren't found. I'm pretty sure that I have a classpath problem, but I have ...

16. log4j config    coderanch.com

I have added following in to the log4j.properties file and trying to start up the server. Vendor who built the server that server can write to log4j tables and all what I need to do is add below to .properties file. But Server does not get started up... Do you have any idea ? log4j.appender.DB=org.apache.log4j.db.DBAppender log4j.appender.DB.connectionSource=org.apache.log4j.jdbc.DriverManagerConnectionSource log4j.appender.DB.connectionSource.driver=com.mysql.jdbc.Driver log4j.appender.DB.connectionSource.url=jdbc:mysql//serv1:3306/mylogDB log4j.appender.DB.connectionSource.username=myname log4j.appender.DB.connectionSource.password=mypass





17. log4j Taglib    coderanch.com

18. Help with Log4j    coderanch.com

the other cool thing about log4J is that if it isn't already configured, it will first check the classpath for the log4j.properties file. Since the directory WEB-INF/classes is on the web application classpath, log4J should find it automatically. This means you can do away with your initialisation code and go straight to the code Mike gave you - you can ignore ...

19. log4j with with multiple web apps?    coderanch.com

Hi everyone! I am running resin-3.0.7 and I am using latest log4j version. Everything was fine running log4j when I had only 1 application on my server - siblumber.com. Log4j was setup up like this - /WEB-INF/log4j.xml which uses ${user.dir}/WEB-INF/logs/logname.txt in all its appenders. Everthing was fine up until I deployed a new application - royaleskincare.com. It uses the EXACT same ...

20. How to install log4j in JBuilderX?    coderanch.com

1. download log4j.jar to your local machine and add it to the build path of your project. 2. create a log4j.properties file which includes some basic setup, such as root category, log file location, log format etc, and then add this property file to the build path. 3. rewrite your application using logging mechanism. Logger logger = Logger.getLogger(object name here); logger.debug(debug ...

21. Log4j and resin    coderanch.com

hi all.. i face a probelm that i have many webapps under the resin & i make to every webapp separate .log file for it... it work correclty..but at the server..sometimes it there are conflicting that webapp write its log in others & so on.. if i can make like a listener to every webapp to confirm the logging for it..need ...

22. log4j...    coderanch.com

Hi all, I'm new and I've already a problem with log4j. Here my implementation of log4j : [h1]be.arista.Oscar.servlet.OscarServletContextListener[/h1] package be.arista.Oscar.servlet; import org.apache.log4j.Logger; import org.apache.log4j.PropertyConfigurator; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; public class OscarServletContextListener implements ServletContextListener { private ServletContext ctx = null; public void contextInitialized(ServletContextEvent event) { ctx = event.getServletContext(); String props = ctx.getInitParameter("log4j-init-file"); PropertyConfigurator.configure(ctx.getRealPath(props)); Logger logger = Logger.getLogger(this.getClass()); logger.info("Application initialised"); } ...

23. log4j    coderanch.com

24. Log4j levels    coderanch.com

Hi, What is the correct log4j level to use in a web application for the following circumstances. 1) In authentication user gives wrong password ( Can i use DEBUG for it?) 2) User profile is updated successfully ( INFO?) 3) Connection pool is depleted ( DEBUG?) 4) DB Failure ( FATAL?) When should I use error level. If I catch any ...

25. initializing log4j    coderanch.com

String path = "A3-log4j.xml"; This says that the file is in the current working directory, which, chances are, isn't your WEB-INF/classes directory. I don't explicitly initialize log4j. I just put the config files in that directory and let it find them on it's own by traversing the classpath. If you need to initialize it yourself, look at either getRealPath (which sometimes ...

26. How to set different loglevel in log4j?    coderanch.com

Hello! I need to log outputs to both console and file, but I would like to have different loglevels. My log4j.properties look like: #CONSOLE AND FILE LOGGING #CONSOLE LOGGING log4j.rootLogger=DEBUG, A1, ROLLINGFILE #log4j.logger.console=DEBUG, A1 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n log4j.appender.A1.Threshold=DEBUG #FILE LOGGING #log4j.logger.file=ALL, ROLLINGFILE log4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender log4j.appender.ROLLINGFILE.Threshold=ALL log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d [%t] %-5p %c - %m%n log4j.appender.ROLLINGFILE.File=D:/apps/thelog.log log4j.appender.ROLLINGFILE.MaxFileSize=10MB log4j.appender.ROLLINGFILE.MaxBackupIndex=64 I would ...

27. Log4j time problem in Solaris    coderanch.com

Hi, I have different behavior of log4j on windows and Solaris. I get wrong time entry in log file for march month in Solaris machine. i.e if the console displays date & time as Thu Mar 29 06:29:39 EDT 2007 then i get [29 Mar 2007 05:29] but i gives me correct time for all other months & in windows. Why ...

28. Log4j time problem in Solaris    coderanch.com

Hi, I have different behavior of log4j on windows and Solaris. I get wrong time entry in log file for march month in Solaris machine. i.e if the console displays date & time as Thu Mar 29 06:29:39 EDT 2007 then i get [29 Mar 2007 05:29] but i gives me correct time for all other months & in windows. Why ...

29. log4j vs system.out.Println()    coderanch.com

hi guys what is the difference between printing a content in console using log4j and system.out.println().peoples use to say that using system.out.println() is performance loss i think log4j is written in java so it may also use system.out.println() to print the content in console then why peoples preferring log4j ? i think i have posted this topic in correct forum i ...

30. log4j use best way    coderanch.com

How can I use log4j in the best way in my program? I configure all logging properties in the properties file. /******************************************* #For File Append of the logs log4j.rootCategory=DEBUG, rfware log4j.appender.rfware=org.apache.log4j.RollingFileAppender log4j.appender.rfware.File=c:/temp/aiicommunicator.log log4j.appender.rfware.Threshold=DEBUG log4j.appender.rfware.Append=false log4j.appender.rfware.MaxFileSize=1000KB log4j.appender.rfware.MaxBackupIndex=2 log4j.appender.rfware.layout=org.apache.log4j.PatternLayout log4j.appender.rfware.layout.ConversionPattern=%d [%t] %-5p %c - %m%n /********************************************************************* But I want to load this properties during the start up of my application for logging in ...

31. Help log4j SysLogAppender    coderanch.com

Hi, I am not able to write the log messages in the syslog server (particularly I need to write in the messages log file) and Pls find the code below and I dont know wht missed out package com.test.syslog; import org.apache.log4j.Logger; import org.apache.log4j.PropertyConfigurator; public class TestSyslog { static Logger log = Logger.getLogger("TestSyslog"); public static void main(String args[]) { PropertyConfigurator.configure("D:/src/com/test/syslog/log4j.properties"); log.debug("This is ...

32. Confusion in using Log4j    coderanch.com

Hi all, Am a fresher with logj4 and trying to configure my properties file. My question is that how can i log differrent priorities of messages to different files using categories and appenders. help would me greatly appreciated. This is my properties file. I ma not able to get the desired output even if i use a threshold value. Can anyone ...

33. Log4J Help..............    coderanch.com

Hi, I am using log4j for logging on weblogic. I am using log4j properties file for configuration. I want to configure log4j only once when server starts. There after if I change log4j.properties file in runtime, I want it will not reflect in my running application. How i can achieve this??? Thanks in advance.

34. log4j problem    coderanch.com

Hi all, I have a web based application that consists of some business modules. And I am using log4j to log every incoming request to that modules. I want every module have own log files so I can trace every request in each module. The log are generated in the jboss console but not in the file which is given in ...

35. Log4j    coderanch.com

36. Log4j    coderanch.com

Hello All, I am new to log4j. I want to write all the messages in the file. As per the tutorial of Log4j , I did the changes and I got the messages in the file. But I want to log the message in a file which is stored somewhere else that is in some other directory but in the same ...

37. log4j question    coderanch.com

38. Will someone put log4j usage into small words?    coderanch.com

My brain is very very small. What I really want to do is write a diagnostic line to a text file. With the maligned System.out.println() it's drop dead easy and I'm on to another task. My app is a web service running in axis2, which is in Tomcat container, which is in Jetspeed, to make things interesting... I included the typical ...

39. Subtle, subtle, little Log4j difficulty    coderanch.com

I have a custom logger and a log4j.xml combination that, I hoped would send output to a specified persistent file. However, the content is being created and logged to the console instead. I'm not sure why (considering log4j is creating the intended log file). Clearly I'm missing a step. Can someone take a peak and clue me in? The code snippets ...

40. Log4j - What does it stands for?    coderanch.com

41. Log4j    coderanch.com

42. how to use log4j..    dbforums.com

43. problem with log4j    java-forums.org

Hi can you please tell me if in a package i have 2 files name Test1.java and Test2.java. I want Test1.java to give only info messages and Test2.java to give only debug messages. Is this possible using log4j.properties or log4j.xml or i have to define different log mechanisms for different files. Thanks in advance

44. log4j questions    java-forums.org

I have 2 questions regarding log4j : 1. How do I disable appending to the log files when running an application again ? (Now the logging is just being appended to the last run logging generating a very big log file) 2. How can I disable logging to the console ? (Now every log I make is written to the proper ...

45. log4j how can stop inheritage chain?    java-forums.org

46. Couple quick log4j questions    java-forums.org

I don't understand what you are asking for the first question, it is possible to have the root logger be set to level INFO by default and have an individual package be at DEBUG level, the messages should show up in the output as DEBUG. ? For different levels to more than one appender, I know this is possible in logback ...

47. Log4J Question     java-forums.org

48. AsyncAppender in log4j    java-forums.org

Hi Guys, In my application, am using AsyncAppender to log only Error's from a class(com.uk.test.Test) to database. Here is the extract from my log4j.xml {code} ...

49. log4j    java-forums.org

hi iam new using log4j.properties file to configure log4j i have used daily rolling file appender to roll the file on daily basis,.........but its not getting rolled at midnight.Iam sending the code which i have used.can u please any suggestions so as to get the output: sample code used by me log4j.rootLogger=debug,D log4j.appender.D=org.apache.log4j.DailyRollingFile Appender log4j.appender.D.DatePattern='.'yyyy-MM-dd-HH-mm log4j.appender.D.File=C:/Documents and Settings/user/Desktop/log4j5/DailyRolling.log log4j.appender.D.layout=org.apache.log4j.PatternLa yout log4j.appender.D.layout.ConversionPattern=%d{ISO86 ...

50. Log4j and System.out.println    java-forums.org

51. log4j initialization    java-forums.org

package com.foo; import org.apache.log4j.PropertyConfigurator; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.PrintWriter; import java.io.IOException; public class Log4jInit extends HttpServlet { public void init() { String prefix = getServletContext().getRealPath("/"); String file = getInitParameter("log4j-init-file"); // if the log4j-init-file is not set, then no point in trying if(file != null) { PropertyConfigurator.configure(prefix+file); } } public void doGet(HttpServletRequest req, HttpServletResponse res) { }

52. log4j - multiple applications in same domain    java-forums.org

Hi , I am using oracle weblogic server. I have a single domain and two applications CustomerService and Admin applications deployed in the same domain. I have created two log4j configuration files and loaded one in each application. But my problem is all the logs are going to same log file instead of two. Please find the configuration for CustomerService log4j ...

53. Problem with Log4J    forums.oracle.com

Hi All, I am using the log4j for keeping my logging my application transactions. Everything is working. My problem is this. after a few days, the log4j doesn't log anything anymore. I checked the tomcat services and its running fine. however, due to some reason, the log4j just 'dies' . Can anyone help me with this? i can't figure out whats ...

54. log4j    forums.oracle.com

Hi..can anybody pls help me with this..though it is not related to core java..but hope i can get people who have worked on those.. can anybody pls give me example with small application which can write debug information using log4j. If any event generated in server side how to notify it to the client? thnx in advance

55. log4j implementation in web module.    forums.oracle.com

56. Log4j problem; please help    forums.oracle.com

57. log4j    forums.oracle.com

58. log4j    forums.oracle.com

59. Need a sample for SyslogAppender in log4j    forums.oracle.com

60. log4j    forums.oracle.com

61. LOG4J issues    forums.oracle.com

62. Log4j problem    forums.oracle.com

From the documentation for the class: "RollingFileAppender extends FileAppender to backup the log files when they reach a certain size." So I would assume that your configuration says "Create a log file named /mylogs/myapp/mylogs.log, and when its size reaches 10 megabytes, rename it to /mylogs/myapp/mylogs.log.1and create a new /mylogs/myapp/mylogs.log file." That's based on the documentation I read. So it looks to ...

63. Help with log4j    forums.oracle.com

64. Help with Log4J    forums.oracle.com

65. Unit tests - log4j    forums.oracle.com

66. log4j    forums.oracle.com

67. Import problem org.apache.log4j.PropertyConfigurator    forums.oracle.com

Sorry if this is a dumb question but:- I have entered import org.apache.log4j.PropertyConfigurator; into NB5.5 and it says "package org.apache.log4j does not exist". Am I supposed to download this package or is it on my PCs hard disk somewhere? I've done a file search but failed to find it. Does it come with JDE or JDK? or have I not set ...

68. Snow Leopard & log4j    forums.oracle.com

I'm running Mac OS 10.6.3 w/ the latest Java install. I'm trying to get a genomics program to work - I didn't use to have problems with it, but now I keep getting this message. I've spent hours messing with the CLASSPATH and other random things, but none of it helps. If I do a simple hello world program - it ...

69. set up Log4j    forums.oracle.com

Hello, I am using jdk 1.6 and and log4j.jar. I have following log4j.properties ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// log4j.logger.icz=DEBUG,iczLog log4j.appender.iczLog=org.apache.log4j.DailyRollingFileAppender log4j.appender.iczLog.File=d:\\Java\\LiquidOffice\\LogApp log.log log4j.appender.iczLog.DatePattern='.'yyyy-MM-dd'.log' log4j.appender.iczLog.layout=org.apache.log4j.PatternLayout log4j.appender.iczLog.layout.ConversionPattern=%d{dd.MM.yyyy HH\:mm\:ss} %-5p - %m%n`` ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// And I would like to set to this log max file size. But it is not possible, because it is DailyRollingFileAppender. Max file size I can set it to RollingFileAppender. But I would like to ...

70. log4j question    forums.oracle.com

2008-09-03 14:03:41,593 DEBUG system.equipment.dcvd2.spindle - waitForCompletion : latch AWAIT for HOME ALL - com.nvls.ncf.rt.device.spindle.implementation.hardware.servo.OEMServoSpindleCommand$Home@fd760 2008-09-03 14:03:42,718 INFO system.equipment.dcvd2.spindle - Received ...

77. log4j    forums.oracle.com

78. audit trail - and log4j    forums.oracle.com

There's probably a SQL log appender for log4j. If it's not in the main library, somebody somewhere probably has written it as an add-on. I question the wisdom of caching audit trail info in memory as you suggest, however. If there were a system crash, you'd lose the data. That would probably be a bad thing for an audit system.

79. Log4J    forums.oracle.com

...

80. Log4j in multiple clusters in the same machine    forums.oracle.com

i use log4j and i'm having some problems with my log files. I have two clusters in the same machine. How can i have the logs independent of each other. Now i have one cluster jamming the log of the other cluster. I want this doesn't happen, i want they log separately. How can i do it?

81. [log4j] how can stop inheritage chain?    forums.oracle.com

Well, but if I have 1000 classes and I want that 999 use FILE and only Foo class not? I must write 999 line in properties file? A solution can be use a logger for Foo that has a name that is not its class name... But there isn't a method to stop the inhetitage at any point? Edited by: snoopybad77 ...

82. log4j question    forums.oracle.com

Hi, I am deploying some applications (A, B...) in a Tomcat server. One of those applications uses a 3rd party library jar, which some classes that vomit a lot of irrelevant info in a stdout_.log file. In order to set to warn level one of those packages, Does somebody knows what log4j config file I need to edit?, where it is?, ...

83. Working with Log4j    forums.oracle.com

The app should not make it its concern about whether or not the config file exists. What if it exists but is empty? What if it exists but is configured to log everything to your grandmother's email address, spamming her to tears? Are you going to worry about how it is configured? It's really not the application's job to concern itself ...

84. Log4j problem ---- VERY VERY URGENT PLEASE    forums.oracle.com

Hi, I am new to log4j. In my project( web application -- a testing framework ), there is a requirement to log the errors in a different filres for different requests ( the request may come simultaneously ) , by taking the log file path from the user interface. To achive the requirement , I am taking both the log file ...

85. LOG4J Problem    forums.oracle.com

public TestApp() { System.out.println("Starting"); log.debug("This is a debug message"); System.out.println("Finishing"); } public static void main(String[] args) { TestApp testApp = new TestApp(); } } I have also include the following in my classpath, path="D:\projects\test\" Now am still getting the following error, log4j:WARN No appenders could be found for logger (au.com.test.TestApp). log4j:WARN Please initialize the log4j system properly. Please help. Thanks.

86. log4j problem.    forums.oracle.com

hi Everyone, I have created two java file one refers to log4j configration and other used to this java file whenever error occur in this file. Here problem is that whenever error occur in my second file it shows the error line number of my first one file i.e CustomAppLogger.java, this is my configuration file and other i.e myApp.java file which ...

87. log4j problem.    forums.oracle.com

hi Everyone, I have created two java file one refers to log4j configration and other used to this java file whenever error occur in this file. Here problem is that whenever error occur in my second file it shows the error line number of my first one file i.e CustomAppLogger.java, this is my configuration file and other i.e myApp.java file which ...

88. Log4j    forums.oracle.com

89. Log4j strange behaviour    forums.oracle.com

Hi, I am bit confused with the weird behaviour of Log4j. On my websphere server, I have created a profile. In which, I have deployed two web applications.I am providing log4j.properties file as a shared library. Although both the apps are provided a reference to separate shared libraries, on restrting the server, it is taking reference to one of the shared ...

90. Out of disk space scenario + Log4j    forums.oracle.com

91. How to shutdown log4j    forums.oracle.com

And this in the javadoc for org.apache.log4j.Category#shutdown(); "Calling this method will safely close and remove all appenders in all the categories including root contained in the default hierachy. Some appenders such as SocketAppender and AsyncAppender need to be closed before the application exists. Otherwise, pending logging events might be lost. The shutdown method is careful to close nested appenders before closing ...

92. Log4J Problem    forums.oracle.com

I getting the below log4J problem 8/5/08 10:12:18:001 IST] 00000038 SystemErr R log4j:WARN No appenders could be found for logger (VINValidationService). [8/5/08 10:12:18:001 IST] 00000038 SystemErr R log4j:WARN Please initialize the log4j system properly. my log4j.properties is in class path, so why i am getting this error. below is my log4j.properties file log4j.rootLogger=debug, stdout, R log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output ...

93. How write Custom levels using Log4j    forums.oracle.com

Unlike Minko, I had no problem understanding your question. At one point I wanted to do the same thing myself. I was hoping for just a simple property setting to change. What I found was this: " Loggers may be assigned levels. The set of possible levels, that is: TRACE, DEBUG, INFO, WARN, ERROR and FATAL are defined in the org.apache.log4j.Level ...

94. Log4j problem    forums.oracle.com

I am using the log4j for logging. Maximum Size of log file is 10MB After every 10MB of file size, new log file should be create and this should be on daily basis. The name of the log files should be look like are as follows: AccountCreate-2008-09-09-2 (Size-6MB) AccountCreate-2008-09-09-1 (Size-10MB) AccountCreate-2008-09-08-3 (Size-5MB) AccountCreate-2008-09-08-2 (Size-10MB) AccountCreate-2008-09-08-1 (Size-10MB) AccountCreate-2008-09-07-1 (Size-8MB) Can any one ...

95. log4j Help    forums.oracle.com

96. Log4j    forums.oracle.com

I have 2 classes LogUtils and LoggingAdapter. Both are under the same package. I want to configure log4j so that all logs from LogUtils goes to a logger say a and all logs from LoggingAdapter goes to logger a and b. following is the configuration I have in the file log4j.rootLogger= DEBUG,stdout,ClockServer,Mina log4j.logger.src.main.java.reflexis.Utils.LogUtils = DEBUG,ClockServer log4j.appender.ClockServer=org.apache.log4j.RollingFileAppender log4j.appender.ClockServer.File=C:/workspace_rws/BACServer/BACServer.log log4j.appender.ClockServer.append=false log4j.appender.ClockServer.MaxFileSize=10MB log4j.appender.ClockServer.MaxBackupIndex=1 log4j.appender.ClockServer.layout=org.apache.log4j.PatternLayout ...

97. about log4j and java    forums.oracle.com

98. Problem with log4j    forums.oracle.com

99. log4j problem    forums.oracle.com

100. Log4J    forums.oracle.com