J-CORE Wiki
Brought to you by:
longstone
Write to local or network file system
FILE
[JCORE] LOGGING SERIVCE NAME
logFacility="FILE" LOG TO: File @ writePath. "FILE" IF UNDEFINED
writePath="LOGS/" [LOCAL/NFS/GSF], assumed to be under /var/log/....
logName="JCORE_" "[FILE_PREPEND]" date will be added to the file name
dateFormat="Y-m-d" added to the prepend file name
logSuffix="log" the "." is added before the suffix
stripWhitespace=TRUE strip whitespace from the log message
===OPTIONAL SETTINGS===
buffer="FALSE/TRUE" (MUST BE STRING) whether to buffer output
bufferSize=[4096] int # of chars [i.e. 4096] should be the number of characters to create a string of # bytes equalling the file block size of the file system, [UTF-8 -3 chars for BOM] only use these if you need to, you can try to optimize I/O by buffering to the block size of the file system. Buffer is written when message reaches block size or on destruct/decomposition.
send a log message to a UDP listening service
[UDP_LOGGER] LOGGING SERIVCE NAME
logFacility="UDP" LOG TO: Socket via UPD
port=[10K+] HOST PORT (1 per service)
host="127.0.0.1" HOST NAME/IP
persist="FALSE/TRUE" PERSIST THE SOCKET (MUST BE STRING)
log directly to syslog/syslog-ng
[SYSLOG] LOGGING SERIVCE NAME
logFacility="SYSLOG" LOG TO: (OS Syslog service)
log to a supported data store
[DATA_BASE]
DSN="DataStoreName" Data Store Name
Anonymous