No, I don't use any existing framework in my application like log4j, or java logging. I've only created a very basic one that is sufficient for our needs and for now.

Obviously and because of the use of ftpserver, there are slf4j-api-1.5.2.jar and slf4j-simple-1.5.2.jar libs on class path. I understand that I have to configure ftpserver logger in debug mode using an external configuration file. I've tried this
one :
log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=Existing_path_to_log_file
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=[%5p] %d [%X{userName}] [%X{remoteIp}] %m%n

passing -Dlog4j.configuration=file:path_to_config_file at JVM argument, but without success :-(


On Wed, Mar 30, 2011 at 12:34 PM, frank buloup<[email protected]>  wrote:
Yes I would like to... but I don't know how to do that !... Sorry
If it is not too long, can you explain me.
Or can you give me a link that explain how to produce this log file
You're probably using some logging framework in your application, like
for example log4j. If so, the logging framework probably got a
configuration file somewhere. In that file, you need to configure a
DEBUG logging level rather than INFO. It might also be that INFO is
the default level if a configuration file is missing. Then you might
need to create a configuration file. In the case of log4j, that file
should be called log4j.properties on the classpath.

/niklas



--

Frank Buloup

04 91 17 22 71

Institut des Sciences du Mouvement

UMR 6233 CNRS & Université de le Méditerranée

163 avenue de Luminy

13288 Marseille Cedex 9

Fax : 04 91 17 22 52

Reply via email to