Skip to content

Log Timestamp: HUMAN READABLE #2053

Closed
Closed

Description

@MTRichards

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.

Activity

  1. eMerzh commented on Mar 3, 2013

    @eMerzh
    Contributor

    agree... maybe a really strict format like iso 8601 ( 1977-04-22T01:00:00 )

  2. karlitschek commented on Mar 3, 2013

    @karlitschek
    Contributor

    Yes. ISO 8601 would be good and supported by php.

  3. DeepDiver1975 commented on Mar 4, 2013

    @DeepDiver1975
    Contributor

    But then let's skip the json format as well - especially multi line messages are a pain to view.

  4. DeepDiver1975 commented on Mar 4, 2013

    @DeepDiver1975
    Contributor

    and all these escapings in json

  5. eMerzh commented on Mar 4, 2013

    @eMerzh
    Contributor

    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

  6. VicDeo commented on Mar 4, 2013

    @VicDeo
    Contributor

    @eMerzh it might be CSV ;)
    It would still need escaping though...

  7. eMerzh commented on Mar 4, 2013

    @eMerzh
    Contributor

    @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)

  8. VicDeo commented on Mar 4, 2013

    @VicDeo
    Contributor

    @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.

  9. j-ed commented on Mar 5, 2013

    @j-ed
    Contributor

    linked to pull request #1623.

  10. BernhardPosselt commented on Apr 17, 2013

    @BernhardPosselt
    Contributor

    Please reopen if not fixed by pull request.

  11. MTRichards commented on Jun 22, 2013

    @MTRichards
    ContributorAuthor

    @Raydiation As requested, reopening - we don't need a crazy complex solution, but a different time stamp would be excellent for OC5.

  12. BernhardPosselt commented on Jun 23, 2013

    @BernhardPosselt
    Contributor

    What exactly is the problem with the current timestamp?

  13. MTRichards commented on Jun 23, 2013

    @MTRichards
    ContributorAuthor

    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.

  14. 5 remaining items

  15. MTRichards commented on Aug 1, 2013

    @MTRichards
    ContributorAuthor

    5! :)

  16. BernhardPosselt commented on Aug 1, 2013

    @BernhardPosselt
    Contributor

    @DeepDiver1975 sure, its linked in here :) backport with cherry pick?

  17. DeepDiver1975 commented on Aug 1, 2013

    @DeepDiver1975
    Contributor

    sure, its linked in here :)

    hehe - yeah - I've seen it ....

  18. DeepDiver1975 commented on Aug 1, 2013

    @DeepDiver1975
    Contributor

    let's cherry-pick as soon as @karlitschek agreed

  19. karlitschek commented on Aug 1, 2013

    @karlitschek
    Contributor

    yes. please 👍

  20. BernhardPosselt commented on Aug 1, 2013

    @BernhardPosselt
    Contributor
  21. msrex commented on Aug 1, 2013

    @msrex

    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?

  22. BernhardPosselt commented on Aug 2, 2013

    @BernhardPosselt
    Contributor

    That would be quite easy, just use date('c') (do you want me to create another pull request for this?)

  23. DeepDiver1975 commented on Aug 2, 2013

    @DeepDiver1975
    Contributor

    hmm - before we change the logging datetime format x-times again:
    what about adding a config option on this and default this to ISO8601?

  24. karlitschek commented on Aug 2, 2013

    @karlitschek
    Contributor

    Yes. Let's do it like that. A config option with ISO8601 as default.

  25. BernhardPosselt commented on Aug 2, 2013

    @BernhardPosselt
    Contributor

    like $formatting = OC_Config::getValue('logdateformat') || 'c'; ?

  26. karlitschek commented on Aug 2, 2013

    @karlitschek
    Contributor

    @Raydiation Excellent idea. So we have the maximum flexibility.

  27. DeepDiver1975 commented on Aug 4, 2013

    @DeepDiver1975
    Contributor

    now and forever 🔐
    #4293 has been merged to master and backported to stable5

  28. locked as resolved and limited conversation to collaborators on Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions