core icon indicating copy to clipboard operation
core copied to clipboard

Make log times human readable times instead of unix timestamp

Open RandolfCarter opened this issue 13 years ago • 7 comments

Whenever I go into the owncloud log file to check for recent entries, I'm having a hard time deciphering the unix timestamps. Why not simply print a human readable date/time there? The log file is supposed to be read by humans after all, right?

RandolfCarter avatar Dec 04 '12 13:12 RandolfCarter

Not really. AFAIK it's only supposed to be read from /settings/admin.php - /index.php/settings/admin on master. You can set 'log_type' => 'syslog' in config.php and filter out owncloud msgs.

On (K)Ubuntu 12.10 I did this by editing /etc/rsyslog.d/50-default.conf and adding

:programname, isequal, "ownCloud"       -/var/log/owncloud.log

After the standard log files.

I don't know how it is done on other OS'es

tanghus avatar Dec 04 '12 17:12 tanghus

changing the logging format is wrong way but maybe we can render it to a human readable format when displaying

DeepDiver1975 avatar Dec 04 '12 19:12 DeepDiver1975

maybe we can render it to a human readable format when displaying

That's how it works already.

tanghus avatar Dec 04 '12 20:12 tanghus

Oh - forget everything after 'Good morning!'

DeepDiver1975 avatar Dec 04 '12 20:12 DeepDiver1975

lmao :-)

On Tuesday 04 December 2012 12:41 Thomas Müller wrote:

Oh - forget everything after 'Good morning!'

tanghus avatar Dec 04 '12 21:12 tanghus

;) I guess it can be closed

blizzz avatar Dec 04 '12 21:12 blizzz

@tanghus thanks for the hint with the syslog, that looks good to me :+1:

RandolfCarter avatar Dec 04 '12 21:12 RandolfCarter