I try to integrate JR exporter into existing solution, at locale computer everything works fine but as soon as I install it on production - it fails without error occuring! Is it possible to add some loggers?
Hi Victor,
Yes, I have the same configuration except of the OS… That’s why I need any valuable log info…
Hi Victor,
Hi Victor,
investigate this issue in details and will keep you updated on the status of a
correction. We
apologize for your inconvenience.
Hi there,
nKognito:
It is very strange… You have some logger that outputs some basic info such as “error raised” or something like that but doesn’t print any valuable info regarding this error… I can’t install it on server and as a result can’t test it and buy you solution in case of good results…
nKognito:
And my temporary license is going to expire…
Hi Victor,
Thanks for your patience.
The development team has further investigated the feature requested earlier as PDFJASPER-33149 - Enable error logging over server. Note that this feature is already supported. Please note that Log4j (log4j-1.2.12.jar) logger is already implemented by the The Apache Commons Logging wrapper (commons-logging-1.0.4.jar).
Configure log4j.properties
file and place it in your classpath and include loggers in the dependencies:
dependency
groupId log4j
artifactId log4j
version 1.2.12
dependency
groupId commons-logging
artifactId commons-logging
version 1.0.4
For example the log4j.properties.
# Root logger option
log4j.rootLogger=DEBUG, stdout, file
# Redirect log messages to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
# Redirect log messages to a log file, support file rolling.
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=D:\\log4j-application.log
log4j.appender.file.MaxFileSize=5MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n