log file empty
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   farid_khezzar
Posted On:   Wednesday, May 11, 2005 06:26 AM

i have a big problem with my log file, i configured in my config.properties file to log traces in a file called example.log : no problem it worked very well, but i recently to change my example.log for a file named errors.log i just changed the name of the file in the properties file but it doesn't work the log file is always empty, i tried to put the absolute url : it doesn't change anything everybody has full rights on the log file here is the config.properties file thanks for your help # # This defines the logging level for the rootLogger. It is not required # if you are going to keep the level at debug as    More>>

i have a big problem with my log file,


i configured in my config.properties file to log traces in a file called example.log : no problem it worked very well,


but i recently to change my example.log for a file named errors.log i just changed the name of the file in the properties file but it doesn't work the log file is always empty,


i tried to put the absolute url : it doesn't change anything
everybody has full rights on the log file


here is the config.properties file


thanks for your help



			

#
# This defines the logging level for the rootLogger. It is not required
# if you are going to keep the level at debug as the rootLogger by default
# is at the debug level. The value after the comma is the appender for the
# root and we have given it the name R
#
log4j.rootLogger=debug, R

#
# For this simple example, we are just going to log to the console
#
#log4j.appender.R=org.apache.log4j.ConsoleAppender

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=D:Developmentjdev1012jdevmyworkewip3ViewControllerpublic_htmlWEB-INFerrors.log

log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1


#
# When logging using the ConsoleAppender, the following value tells how and
# what to log. The SimpleLayout simply logs the level of the message and
# the message itself.
#
#Modification : utilisation du patternLayout pour afficher le detail des logs
#http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
#date - priorite - thread - classe - message
#
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern==%d %p %t %c - %m%n
   <<Less
About | Sitemap | Contact