Mail adapter command definition file

Format

[mailadp.command.messagelog.filepath=directory-to-output-command-message-log]
[mailadp.command.messagelog.filenum=number-of-command-message-log-files]
[mailadp.command.messagelog.filesize=maximum-size-of-one-command-message-log-file]
[mailadp.command.messagelog.level={10|20|30}]

Function

This file is used to specify information such as the output destination and the output levels of the message log for the commands used with the mail adapter.

Create the mail adapter command definition file with the name adpmailcommand.properties.

File storage location

The template file is stored at the following location:

Service-platform-installation-directory\CSC\config\mail\templates\adpmailcommand.properties

The mail adapter command definition file is stored at the following location:

Service-platform-installation-directory\CSC\config\mail

Specifiable properties

mailadp.command.messagelog.filepath=directory-to-output-command-message-log~ <Character strings (including two-byte characters) and spaces>

Specifies an absolute path for the directory to output the command message log.

Use the characters / or \\ as directory delimiters. If the directory is not specified, or if the specified folder does not exist, the log is output to service-platform-installation-directory\csc\log\adapter\command.

mailadp.command.messagelog.filenum=number-of-command-message-log-files ~ <Numeric character> ((1 to 64)) <<2>>

Specifies the number of command message log files.

mailadp.command.messagelog.filesize=maximum-size-of-one-command-message-log-file ~ <Numeric character> ((4096 to 16777216)) <<1048576>>

Specifies the maximum size of one command message log file in bytes.

mailadp.command.messagelog.level={10|20|30} ~ <<20>>

Specifies the output levels for the command message log. The following table lists the output information and the output levels:

Output informationDescriptionOutput level
102030
Error informationCause of an exception or an errorYYY
Warning informationInformation such as the problem that occurred
InformationContent of arguments
During command reception and completion of execution
Event notification
Stack trace information
Stack trace for errorNYY
Debug information
Debug information for errorNNY
Legend:
Y: Information is output.
N: Information is not output.

Example of coding

An example of coding of the mail adapter command definition file is as follows:

mailadp.command.messagelog.filepath=C:\\Program Files\\Hitachi\\Cosminexus\\csc\\log\\adapter\\command
mailadp.command.messagelog.filenum=2
mailadp.command.messagelog.filesize=1048576​
mailadp.command.messagelog.level=20

Notes

Two-byte characters are interpreted as invalid strings, so use the native2ascii command for converting such characters. For details on the native2ascii command, see the JDK documentation.