You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is VERY difficult to debug ownCloud via the ownCloud log because the timestamp is in the linux timestamp.
I hear this from users all the time as well, complaining about the problem
Can we please shift (at some point) the logging format to a human readable date and time?
It would make the debugging efforts much easier, and even help out some of our users out there. For example, I am trying to see if there is something in the log that explains why I can't add a user, but I can't tell which time stamp is relevant in the log, so I have to open another site and convert all the timestamps manually.
for me json it's not user friendly but it's clearly human readable :) and it's easily computable...
a plain logfile is bit more user friendly but clearly not easily computable
iso 8601 is computable without too much efforts
@VicDeo berk csv :p ... and for multiline crap it's even worst than json ( which is handier than having to recognize the next line to see if it's the followup of the stacktrace or a new line)
@eMerzh it's possible to bound strings data with quotes there (quotes in text need to be escaped in this case) , but I don't advocate CSV, I just pointed one of possible options.
The big problem is no human can read it. We just need a timestamp humans can understand. @eMerzh above was a good idea (maybe a really strict format like iso 8601 ( 1977-04-22T01:00:00 )). Truly anything would be better than the unix seconds mechanism. We even convert it in the web ui. Lots of users complain about it to me. What I don't know is how deep a change needs to be to adjust that part, so I can't judge if this is difficult or not.
The format @Raydiation proposes above misses the critical information "timezone". Can we please go back to the idea of ISO8601 format including the full timezone designation?
Activity
eMerzh commentedon Mar 3, 2013
agree... maybe a really strict format like iso 8601 ( 1977-04-22T01:00:00 )
karlitschek commentedon Mar 3, 2013
Yes. ISO 8601 would be good and supported by php.
DeepDiver1975 commentedon Mar 4, 2013
But then let's skip the json format as well - especially multi line messages are a pain to view.
DeepDiver1975 commentedon Mar 4, 2013
and all these escapings in json
eMerzh commentedon Mar 4, 2013
oh noooooo :p
for me json it's not user friendly but it's clearly human readable :) and it's easily computable...
a plain logfile is bit more user friendly but clearly not easily computable
iso 8601 is computable without too much efforts
VicDeo commentedon Mar 4, 2013
@eMerzh it might be CSV ;)
It would still need escaping though...
eMerzh commentedon Mar 4, 2013
@VicDeo berk csv :p ... and for multiline crap it's even worst than json ( which is handier than having to recognize the next line to see if it's the followup of the stacktrace or a new line)
VicDeo commentedon Mar 4, 2013
@eMerzh it's possible to bound strings data with quotes there (quotes in text need to be escaped in this case) , but I don't advocate CSV, I just pointed one of possible options.
j-ed commentedon Mar 5, 2013
linked to pull request #1623.
BernhardPosselt commentedon Apr 17, 2013
Please reopen if not fixed by pull request.
MTRichards commentedon Jun 22, 2013
@Raydiation As requested, reopening - we don't need a crazy complex solution, but a different time stamp would be excellent for OC5.
BernhardPosselt commentedon Jun 23, 2013
What exactly is the problem with the current timestamp?
MTRichards commentedon Jun 23, 2013
The big problem is no human can read it. We just need a timestamp humans can understand. @eMerzh above was a good idea (maybe a really strict format like iso 8601 ( 1977-04-22T01:00:00 )). Truly anything would be better than the unix seconds mechanism. We even convert it in the web ui. Lots of users complain about it to me. What I don't know is how deep a change needs to be to adjust that part, so I can't judge if this is difficult or not.
5 remaining items
MTRichards commentedon Aug 1, 2013
5! :)
BernhardPosselt commentedon Aug 1, 2013
@DeepDiver1975 sure, its linked in here :) backport with cherry pick?
DeepDiver1975 commentedon Aug 1, 2013
hehe - yeah - I've seen it ....
DeepDiver1975 commentedon Aug 1, 2013
let's cherry-pick as soon as @karlitschek agreed
karlitschek commentedon Aug 1, 2013
yes. please 👍
BernhardPosselt commentedon Aug 1, 2013
8930725
45f5c9c
6e2b989
msrex commentedon Aug 1, 2013
The format @Raydiation proposes above misses the critical information "timezone". Can we please go back to the idea of ISO8601 format including the full timezone designation?
BernhardPosselt commentedon Aug 2, 2013
That would be quite easy, just use date('c') (do you want me to create another pull request for this?)
DeepDiver1975 commentedon Aug 2, 2013
hmm - before we change the logging datetime format x-times again:
what about adding a config option on this and default this to ISO8601?
karlitschek commentedon Aug 2, 2013
Yes. Let's do it like that. A config option with ISO8601 as default.
BernhardPosselt commentedon Aug 2, 2013
like $formatting = OC_Config::getValue('logdateformat') || 'c'; ?
karlitschek commentedon Aug 2, 2013
@Raydiation Excellent idea. So we have the maximum flexibility.
DeepDiver1975 commentedon Aug 4, 2013
now and forever 🔐
#4293 has been merged to master and backported to stable5