HI All,
I have a requirement in one of my prjects that the log files be
generated in HTML format and that they should automatically be rolled
over everyday. For thi purpose, I am trying to use HTMLLayout with
DailyRollingFileAppender. However, the file is not rolled over. Instead,
the log infor
Hi everybody,
I have a problem:
I develop a web application, I want to create my log files in a Folder
in the context like this: $CATALINA_HOME/webapps/mywebapp/ $LOG_FOLDER.
I use my own FileAppender to create a log file every day which contains
the date in the name file. It is working
Hi
I have noticed that while I try to configure Log4j using Apach Log4j API
in an initialization servlet in my web application. It sort of stops
displaying the other statements that are by default displayed usually.
(i.e. Started J2EE application ... and so on and so forth.. ). These
are not g
There are lots of references to doing this on the list. I suggest you
search. In short, you can either add properties directlyto the Property
configurator, if you manually configure Log4j, or set a Java System
property
java -Dlog.dir=/some/path/to/log/dir
And in all cases, you refe
Well, it depends what your config file looks like. Also, sounds like you are
using JBoss. I think the classloader is server-wide, correct? Therefore, you
are using a single instance of Log4j and, thus, utilizing a single Logger
repository. So, whenever you perform configuration from any app
Multiple processes can't write to the same file even with
AsyncAppender. AsyncAppender is so that logging doesn't have to wait
for the message to be written when the underlying appender could take
a while to write.
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take t
It doesn't look like there is an isErrorEnabled method but you could
use logger.isEnabledFor(Level.ERROR)
Why would you ever disable the error level?
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
On Mon, Jun 23, 20
You can map the log4j levels as follows and then just use the standard levels.
0: OFF
1: WARN
2: INFO
3: DEBUG (or TRACE)
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
On Mon, Jun 23, 2008 at 3:58 PM, pram <[EMAIL
If each workstation is running log4j then you can just use a different
config file.
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
On Mon, Jun 30, 2008 at 9:25 AM, Chris Gilliam
<[EMAIL PROTECTED]> wrote:
> Hello All
The sub-applications may be trying to reconfigure logging.
Run with -Dlog4j.debug to see if that is happening.
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
On Mon, Jun 30, 2008 at 9:32 AM, Amgad Mohamed <[EMAIL PRO
Hello,
I referred to the Log4J Manual (1.2.9) and set up the log4j.properties
file under the project's C:/dev/projects/projecta/WEB-INF/classes
folder.
The log4j.properties file has:
dir=C:/dev/projects/projecta/logs
file=projecta.log
target=${dir}/${file}
#log4j.debug=true
log4j.rootLogger=DEBU
You need to put the properties file in the same classloader (or higher) as
log4j.jar. So, if you put log4j.jar in shared/lib, then you need to put the
properties file at that level as well. Standard Java classloading does not
allow a parent loader to see child loaders. If you still want
log4
Thank you very much, logging works now.
-r
On Tue, Jul 1, 2008 at 3:47 PM, Jacob Kjome <[EMAIL PROTECTED]> wrote:
> You need to put the properties file in the same classloader (or higher) as
> log4j.jar. So, if you put log4j.jar in shared/lib, then you need to put the
> properties file at that l
13 matches
Mail list logo