INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Is there a timestamp in the log file?  (Read 1293 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Is there a timestamp in the log file?
« on: May 09, 2017, 10:03:57 am »

I remember reading this somewhere but I can't find it now, what are the first two numbers in the log file?

e.g.

Code: [Select]
14307003: 564381440: Sharing Plugins: CUDPSocketReader::Accept: Finish (0 ms)

IIRC it's something like <ms since startup>: <some internal thread id>: <message>


Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: Is there a timestamp in the log file?
« Reply #1 on: May 09, 2017, 10:06:10 am »

One of the first lines has the date.

Here's an example:
0000000: 2668: General: Starting logging: Date: 5/9/2017 8:35 am

Then it's the number of milliseconds since that time in the first number of every line.
Logged
Matt Ashland, JRiver Media Center

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: Is there a timestamp in the log file?
« Reply #2 on: May 09, 2017, 10:08:39 am »

thanks, is the 2nd token some sort of thread id? or something else?

IMV it would be nicer to change the 1st token to an absolute value, i.e. epoch millis. Whenever I look at the logs, I invariably want to relate it to some real world event (i.e. I know it went wrong around 1615 *scans the logs for 1615*)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: Is there a timestamp in the log file?
« Reply #3 on: May 09, 2017, 10:11:08 am »

Yes, the second number is the thread ID.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up