App Logging -

Nishan
Mega Expert

syslog_app_scope.sys_created_on : Created time format :  2022-03-14 19:20:32

Usually at any given time, there would be multiple processes running and which could be writing to the logs as well on same time.

Because current  time format includes up to SECONDS only, it becomes hard to understand the sequence of log as there is not even any other out of box alternative like sysid's are also not numbers and there is not other sequence etc field. That in-turn makes logs not so helpful.

Wondering what do you think about enhancement for making the time format of logs to include more fractional seconds say microseconds would be even better than milliseconds... or may be including some additional fields like sequence number etc

Thanks,

Nishan

2 REPLIES 2

Luke Van Epen
Tera Guru

There is already an idea for this here: Provide more precise created date in logging tables

You can make the logs more accurate yourself by including a timestamp at the beginning of each log message, then you can sort the log messages by the "Message" field and it will display them in order.

To do this very simply, just create a log function which appends Date.now() to the front of every log message.

Nishan
Mega Expert

Thanks Luke for responding on the question !!

This is kind of custom solution we are already steering towards otherwise. My point of raising it here in the forum was to see if ServiceNow thinks this is something which should be addressed in product itself. 

I see the idea you have referenced is 2 year old and still in consideration itself. Not sure if its on part of any roadmap as well.

Thanks,

Nishan