KB Article #177199

How to change the date format in trace file

Problem

How to change the date format in trace file.

The default trace format in the trace file is "%d/%b/%Y:%H:%M:%S".

Resolution

To change the date format in the trace file, set the environment / shell variable VORDEL_TRACE_TIME_FORMAT.


For example:

export VORDEL_TRACE_TIME_FORMAT="%d-%b-%Y:%H:%M:%S"

Trace:

INFO 18-Jun-2015:10:08:58.616 [2b8ab920] service started (version 7.3.1-2014-07-28 rev. 80fd8fe, pid 10306)


The detail on the specifiers is provided at www.cplusplus.com/reference/ctime/strftime/.

The VORDEL_TRACE_TIME_FORMAT could be defined in the user_home shell profile file and also in the <API_Gateway_Install>/posix/lib/venv.