4.9 Section [LogFile]
This section defines log file related parameters. Currently, it allows users to specify log file rotation options.
Filename=/var/log/gk_trace.log
Default:N/A
Set the output filename for the log file (same as -o on the command line). On Windows, backslashes in the file name have to be escaped.
This setting doesn't change when the config is reloaded!
Rotate=Hourly | Daily | Weekly | Monthly
Default:N/A
If set, the log file will be rotated based on this setting. Hourly rotation enables rotation once per hour, daily - once per day, weekly - once per week and monthly - once per month. An exact rotation moment is determined by a combination of
RotateDay
andRotateTime
variables. During rotation, an existing file is renamed to CURRENT_FILENAME.YYYYMMDD-HHMMSS, where YYYYMMDD-HHMMSS is replaced with the current timestamp, and new lines are logged to an empty file. To disable rotation, do not configure theRotate
parameter or set it to 0.- Example 1 - rotate every hour (00:45, 01:45, ..., 23:45):
[LogFile]
Rotate=Hourly
RotateTime=45
Filename=/var/log/gk_trace.log
- Example 2 - rotate every day at 23:00 (11PM):
[LogFile]
Rotate=Daily
RotateTime=23:00
Filename=C:\\Logs\\GnuGk.log
- Example 3 - rotate every Sunday at 00:59:
[LogFile]
Rotate=Weekly
RotateDay=Sun
RotateTime=00:59
- Example 4 - rotate on the last day of each month:
[LogFile]
Rotate=Monthly
RotateDay=31
RotateTime=23:00
Hi,I am running GnuGK as the following:gnugk -c ./gatekeeper.ini -o ./log/gnugk.log -tttcan I control the log file size or do log rile rotation? for example, can I config the gatekeeper.ini so if the log file is bigger than 100MB then it will automatically log to a new one; or log file will do rotation automatically every day? Thanks!Regards,Bo Xu
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________________ Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users Homepage: http://www.gnugk.org/