4.10.3 Advanced Log Configuration
As of version 10.2, logging in Style Intelligence is implemented by the standard Java Logging API of the java.util.logging package. Log messages and be customized and formatted, without implementing a custom logging mechanism. You can selectively set different log levels for different packages, and include useful context based information within logs.
Note: If the report server cannot locate the 'logging.properties' file, basic logging properties will be used (from sree.properties).
To customize your logs, include a 'logging.properties' file within your SREE Home directory. A sample 'logging.properties' file is show below:
.level=INFO
handlers=java.util.logging.ConsoleHandler, inetsoft.util.log.FileHandler
inetsoft.util.log.FileHandler.fileName=${sree.home}/sree.log
inetsoft.util.log.FileHandler.limit=1048576
inetsoft.util.log.FileHandler.count=2
inetsoft.util.log.FileHandler.formatter=inetsoft.util.log.PatternFormatter
inetsoft.util.log.FileHandler.formatter.pattern=%l %dd-%db-%dY %dH:%dM:%dS %u %c %M %m
inetsoft.sree.web.level=FINE
inetsoft.uql.jdbc.level=FINE
• The first property sets the default log level (FINEST, FINE, INFO, WARNING, or SEVERE).
• The second property sets the different log handlers. You can implement your own custom handler by implementing the java.util.logging.Logger interface.
• The 'fileName', 'limit', 'count' and properties specify the log file name, size limit, and the number of files to archive.
• The formatter.pattern specifies the format of the log message using the following characters:
%l Log level
%dd,%db,%dY Log Date (Day, Month, Year)
%dH:%dM:%dS Log Time (Hour, Minute, Second)
%u User Name
%c Class Name
%M Class Method
%m Log Message
• The 'level' property specifies the log detail lever for a specific package. This lets you assign finer logging for certain modules, without cluttering the log with messages from other modules.
| << 4.10.2 Viewing the Server Log | © 1996-2013 InetSoft Technology Corporation (v11.4) | 4.10.4 Writing Log Messages in Custom Code >> |