Posted: Fri Mar 24, 2006 8:04 pm Post subject: Possible to include datestamp as a parameter/variable?
The command line for RO-servers ends with
Quote:
-log=port%server:port%.log
Unfortunately, RO truncates the log when it restarts, so the
previous log is deleted. I'm therefore wondering if it is
possible to insert a date and time stamp into the name of
the file so that it is not overwritten upon startup?
I suppose I could use <gc:include> to fetch a URL that
contains a datestamp, but that is a very ugly hack
Other tricks to preserve the log files during restarts are also
appreciated
Cool, thanks! If I may expand on the suggestion a bit:
There is a potential black hole related to getting timezones
right. Additionally, different people may have different wants
and needs for the time string format. Perhaps using the
more or less standard strftime format where you produce
e.g. 25.03.2006 with "%d.%m.%Y" would be a good idea?
For all I know, this may be rather complex to implement,
and as such will take a long time. A preliminary version of
the command/variable could allow just %s, meaning epoch.
Epoch is the same regardless of timezone, which solves that
problem easily.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum