<< Click to Display Table of Contents >>

scheduler_server_log.properties

Set options for the OZ Scheduler logging system.

Note

To record logs according to the settings of another log library file without using the options below on the Java server, add LogPropertyType=LibraryFile to the scheduler_server_log.properties file.


General Option

Priority

Set the log level priority.

Value

Description

DEBUG

Error, warning, transaction information and scheduler information.

ERROR

Error only.

INFO

Error, warning and transaction information.

WARN

Error and warning.

REMOVE_PARAM_FILE

Remove the parameter file after completing tasks. The parameter file is a temporary file having task information.

Value

Description

true

Always remove.

false

Remove only when the task succeeded.

none

Always not remove.


CONSOLE Option

CONSOLE.Type

Set the console log type.

Value

Description

Stdout

Logging to standard output.

CONSOLE.Layout

Set the pattern of console log contents. The reserved words that can be set in the pattern are as follows:

Value

Description

c

Log the OZ Scheduler category name. Category name have a hierarchical structure and output level can be set, for example %c{2}.

d

Record the date and time. You can use a custom date format or Log4j date format options(ABSOLUTE, DATE, ISO8601).

m

Log the OZ Scheduler event name.

n

Log a newline character.

p

Log the log level.

r

Log the number of milliseconds elapsed from the startup of OZ Scheduler until the creation of the logging event.

t

Log the name of the thread that generated logging event.

%

Log the percent sign.

CONSOLE.Async

Set whether to use the buffering function.


ROLLING_FILE Option

ROLLING_FILE.Type

Set the rolling file log type. The value can only be set to "RollingFile".

ROLLING_FILE.Layout

Set the rolling file log format. Please refer to the reserved words section of "CONSOLE.Layout".

ROLLING_FILE.File

Set the path and name of rolling file log file.

ROLLING_FILE.Append

Set whether to enable or disable appending rolling file log to the log file.

ROLLING_FILE.MaxBackupIndex

Set the maximum serial number of backup rolling file log file. The oldest file is deleted if there are backup log files exceeding the max serial number.

ROLLING_FILE.MaxFilesize

Set the max file size of rolling file log file. When the size of log file exceeds the maximum size, the current log file is renamed with the serial number and new log file is started. For example, if the log file name is OZSchedulerMainLog.log, it is renamed to OZSchedulerMainLog.log.1 and a new OZSchedulerMainLog.log file is started.

ROLLING_FILE.ImmediateFlush

Set whether to enable or disable to flush log buffer to the log file immediately.


NT_EVENT Option

NT_EVENT.Type

Set the NT event log type. The value can only be set to "NTEvent".

NT_EVENT.Layout

Set the NT event log format. Please refer to the reserved words section of "CONSOLE.Layout".

NT_EVENT.Threshold

Set level of log to be sent to NT event. It should be higher level than the level set by Priority option.


SYSLOG Option

SYSLOG.Type

Set the Unix system log type. The value can only be set to "Syslog".

SYSLOG.Layout

Set the Unix system log format. Please refer to the reserved words section of "CONSOLE.Layout".

SYSLOG.Threshold

Set the log level to be sent to Unix. The log level should be higher than the level set in the Priority option.

SYSLOG.SyslogHost

Set the IP address of Unix host.

SYSLOG.Facility

Set the Unix system log facility for the log message.

SYSLOG.FacilityPrinting

Set whether to enable or disable to add facility.


ResultLog Option

ResultLog.RollingType

Set the result log type.

Value

Description

DailyRollingFile

Create a log file as defined by the ResultLog.DatePattern option.

RollingFile

Create a log file as defined by the ROLLING_FILE.File option.

ResultLog.MaxBackupIndex

Set the maximum serial number for the backup file of the result log file generated by task processing. If the backup log files exceeds the maximum serial number, the oldest backup log file is deleted.

ResultLog.MaxFileSize

Set the maximum size for the result log file generated by task processing. If the size of log file exceeds the maximum size, the current log file is renamed with the serial number and a new log file is started.

ResultLog.DatePattern

Set the backup cycle of log files and the pattern of the backup file name. For example, if you set it to "yyyy-MM", the log will be backed up on the first day of each month, and the backup file will be named "resultlog.log.2020-01", "resultlog.log.2020-02", and so on.

Set the patterns as described in the table below:

Value

Description

yyyy-MM

The first day of each month

yyyy-ww

The first day of each week

yyyy-MM-dd

Midnight of every day

yyyy-MM-dd-HH

On time every day

yyyy-MM-ddt

12 and 24 o'clock every day

yyyy-MM-dd-HH-mm

Every minute


MONITOR Option

MONITOR.Active

Set whether to activate or deactivate monitor log.

MONITOR.File

Set file path and name of monitor log.

MONITOR.Append

Set whether to enable or disable to append monitor log to the log file.

MONITOR.MaxBackuplndex

Set the maximum serial number of backup monitor log file. If the backup monitor log files exceeds the maximum serial number, the oldest backup monitor log file is deleted.

MONITOR.MaxFileSize

Set the maximum monitor log file size. If the size of the monitor log file exceeds the maximum size, the current log file is renamed with the serial number and a new log file is started. For example, if the log file name is monitor.log, it is changed to monitor.log.1 and a new monitor.log file is started.

MONITOR.ImmediateFlush

Set whether to enable or disable to flush log buffer to the log file immediately.

MONITOR.point

Set the time point to start log in monitor log. Use comma(,) as a separator to set multiple time points.

Value

Description

END

Log after task completion.

EXE

Log while task processing.

REQ

Log when task requests.


OZ_UDL Option

OZ_UDL.Active

Set whether to use the user defined monitor log.

OZ_UDL.Class

Set the class that implements the user defined monitor log interface.