World Map
Java Service Wrapper is the easiest way to make your product more reliable.
  • Free Trial
  • Buy Now
wrapper.logfile Property

Index

wrapper.logfile

Compatibility : 1.0.0
Editions :Professional EditionStandard EditionCommunity Edition
Platforms :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/OSIBM z/Linux

Sets the path to the log file where all output from the Wrapper and from the Java Application will be logged.

Example ("wrapper.log"):
wrapper.logfile=../logs/wrapper.log

For further information about "rolling mode of log file", "output format of log file", and "log level of log file", please review the description of each property.

Default:

If this property is absent, or if the Wrapper is unable to write at the specified location (e.g because of a permission issue), then the messages will be logged to a default log file named "wrapper.log" in the working directory. Failing that, output to the log file will be disabled and logging will only continue in the console, syslog or EventLog.

Starting from version 3.5.30, the Wrapper has the ability to resume logging into the log file when it becomes available again.

The following diagram represents the fall back and resume mechanisms:


Logging Disable:

Setting the property to a blank value will cause file logging to be disabled.

Property Example:
wrapper.logfile=

NOTE

In versions 3.5.31 to 3.5.34, the Wrapper contains a bug which causes to use the default log file instead of disabling file logging when a blank value is specified. A better practice to disable output to the log file, and which works with all versions of the Wrapper above 2.2.5, is to set wrapper.logfile.loglevel to NONE.

Log File Name generated by Tokens:

The specified log file name may be able to contain one or both of the tokens; ROLLNUM and YYYYMMDD.

"ROLLNUM" Token:

The ROLLNUM token is used when the log file is rolled. If the format is "wrapper.log.ROLLNUM", the "ROLLNUM" token is replaced with an integer, and then the roll numbers will be appended to the end of the file name "wrapper.log".

The larger roll number values, the older files. The most recent rolled log file will always have a roll number of "1", which is "wrapper.log.1". The second recent one will be "wrapper.log.2".

While wrapper.logfile.rollmode property has a rolling mode, if a ROLLNUM token is not included in the specified log file, ".ROLLNUM" will be appended at the end by default.

Examples with ROLLNUM token:
wrapper.logfile=../logs/wrapper.log.ROLLNUM
wrapper.logfile=../logs/wrapper-ROLLNUM.log

"YYYYMMDD" Token:

The YYYYMMDD token is required when the wrapper.logfile.rollmode property has a value of DATE. The "YYYYMMDD" token will be replaced by the date of the log entries contained in the file.

Examples with YYYYMMDD token:
wrapper.logfile=../logs/wrapper.YYYYMMDD.log
wrapper.logfile=../logs/wrapper-YYYYMMDD.log
wrapper.logfile=../logs/wrapper_YYYYMMDD.log

Token Strip:

Whenever either token does not apply to a given file name format, it will be stripped from the generated file name. When a token part is stripped, the preceding character will also be stripped if it is a ".", "-", or "_".

wrapper.logfile.umask

Compatibility :3.2.0
Editions :Professional EditionStandard EditionCommunity Edition
Platforms :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/OSIBM z/Linux

You can set "umask" on this file. See the wrapper.*.umask property.

Example:
wrapper.logfile.umask=0022

Reference: logfile