7 Teleservice Application Framework
User Manual 210/374
7.3.6.2.9 ylogd_set_log_management
Function Description
sint32 ylogd_set_log_management(const T_DBUS_Util * const opt_DBusInstance,
const charn * const opcn_LogJobName,
const charn * const opcn_LogDestination,
const uint32 ou32_LogDuration,
const uint32 ou32_LogCompression,
const uint32 ou32_LogFolderSize,
const charn * const opcn_LogFileExtension);
The function configures the log management settings of a log job.
When the log job terminates or a file limit is reached, a resulting log file will be placed in the destination
directory. The file name will be "LOGJOB_START_STOP.EXT[.gz]".
LOGJOB - opcn_LogJobName
START – time of file start YYYYMMDDHHmmss
STOP – time of file stop YYYYMMDDHHmmss
EXT – "dlf" or opcn_LogFileExtension
[.gz] – optional extension if compression is used
If the folder size limit is reached, the oldest log files in the folder will be removed until the folder size limit is
maintained.
If the destination folder does not exist, the system will attempt to create it.
Information Flow
Input Information
holds all D-Bus information
maximum
MAX_DL_NAME_LENGTH
pointer to log job name that shall be activated
maximum
MAX_DL_NAME_LENGTH
destination folder, logs will be copied to
this folder when the LogDuration or Jobsize is
reached.
If folder is " ", then no copy will occur.
minutes in size of log file, 0 means new file at
midnight
0 no compression,
1 gzip compression