srividya_sharma

Server Side Chart Export - Suppress Log

Recommended Posts

Hi,

 

 

 

in my application I export a lot of charts and every time a chart is exported I get 2 lines in the Application Container log:

 

 

 

10:11:57,614 INFO: com.fusioncharts.exporter.generators.ImageGenerator getChartImage

 

INFO: Image created successfully

 

 

 

This creates a lot of useless noise in the log.

 

 

 

How to turn off the logging completely?

 

 

 

Thanks

Share this post


Link to post
Share on other sites

Hi

Welcome to FusionCharts forum.

Please suppress the FusionCharts specific logs by setting the log level as ERROR for com.fusioncharts.exporter as follows in lib/logging.properties :

 

com.fusioncharts.exporter.level= ERROR

Hope this helps. :)

Srividya

 

Share this post


Link to post
Share on other sites

Hi there,

 

 

 

thanks for your reply. I created a file called logging.properties in the lib directory with the content you mentioned, but I still get the messages. I also tried to put the file in the classes directory, that didn't help either. My application uses log4j and not java.util.logging. Any other ideas?

 

 

 

Thanks,

 

F

Share this post


Link to post
Share on other sites

Hi

For lo4j, please create a log4j.properties file with the following lines in it:

log4j.rootCategory=INFO, R

log4j.logger.com.fusioncharts.exporter=ERROR
------------------------------------------------------------------------------
#
#  The following properties configure the console (stdout) appender.
#  See http://logging.apache.org/log4j/docs/api/index.html for details.
#
#------------------------------------------------------------------------------
log4j.appender.S = org.apache.log4j.ConsoleAppender
log4j.appender.S.layout = org.apache.log4j.PatternLayout
log4j.appender.S.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n

#------------------------------------------------------------------------------
#
#  The following properties configure the Daily Rolling File appender.
#  See http://logging.apache.org/log4j/docs/api/index.html for details.
#
#------------------------------------------------------------------------------
log4j.appender.R = org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File = logs/myApp.log
log4j.appender.R.Append = true
log4j.appender.R.DatePattern = '.'yyy-MM-dd
log4j.appender.R.layout = org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n 

Place this file in WEB-INF/classes folder.

Hope this works out. :)

Srividya

Edited by Guest

Share this post


Link to post
Share on other sites

Hello,

 

I'm having the same issue- I'm also using log4j, but the proposed solution does not work for me - I still see the log message in my console.

Any suggestions?

 

Thanks,

 

Dani

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now