Skip to content

log file format differs from standard syslog format and is not formatted reader friendly #1556

Closed

Description

@j-ed

The currently used logging format of owncloud.log is not really human readable and has been chosen as an easy way to display its content via the admin web menu.

{"app":"roundcube","message":"Checking login data for tom","level":0,"time":1360002692}

If a system administrator has to monitor a huge number of servers and log files from different applications he usually does this by using scripts or other tools which are able to interpret standard log file formats. For this reason I want to recommend to change the currently used format to a more syslog like format.

Feb 8 21:34:46 server owncloud: {roundcube} debug - Checking login data for tom

I've created the following patch which seamlessly integrates the new format into the ownCloud environment.

PR #1559 has been replaced by #1623

The only point which need to be clarified is, how an existing "old formatted" log file can be moved away when running the ownCloud release for the first time, so that not both log formats are written to the same file.

Activity

  1. jancborchardt commented on Mar 20, 2013

    @jancborchardt
    Contributor

    @j-ed I’m closing this in favor of the pull request at #1623. Thank you for the contribution! :)

  2. locked as resolved and limited conversation to collaborators on Aug 23, 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