Chromium log timestamp

  • 1
  • Question
  • Updated 4 years ago
Is there a way to make the Chromium.log include a timestamp for it's entries?

Trying to figure out this crashing issue would be much easier if I had timestamps to match up and see if there is a repeating pattern or time range that it's happening.
Photo of Eric S.

Eric S.

  • 7,412 Points 5k badge 2x thumb
  • wonderlusting

Posted 4 years ago

  • 1
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Kray,

Can you try:

console.logCopy = console.log.bind(console);
console.log = function(data)
{
var currentDate = '[' + new Date().toUTCString() + '] ';
this.logCopy(currentDate, data);
};
(Edited)
Photo of Eric S.

Eric S.

  • 7,412 Points 5k badge 2x thumb
Thanks Blake,
I will try and test this out this week.
Photo of Eric S.

Eric S.

  • 7,412 Points 5k badge 2x thumb
I just took a look and there is no Default folder in rvplayer. Nor is there any preference file.

Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Kray,

Try ~/rvplayer/chrome-linux/master_preferences.
Photo of Eric S.

Eric S.

  • 7,412 Points 5k badge 2x thumb
Added the code into the master_preferences file, but still not recording time stamps in the chromium.log fileĀ 
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
I've emailed our Pi developer to see if he has any other input on enabling timestamps in this log.