Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2136

Group log messages by date

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Fauxton
    • None
    • Regular Contributors Level (Easy to Medium)

    Description

      Another idea how to get more free space for log message is grouping by datetime. You'll rarely notice changes in date part while be reading the logs, so it is possible to extract this common part as group header like:

      [2010-02-13]
      ==============================================================================
      [02:31:30] [<0.6327.1>] httpd 401 error response:
       {"error":"unauthorized","reason":"Name or password is incorrect."}
      [02:31:29] [<0.6258.1>] 'GET' /_log {1,1} from "127.0.0.1"
      Headers: [{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
                {'Accept-Encoding',"gzip, deflate"},
                {'Accept-Language',"en-US,en;q=0.5"},
                {'Connection',"keep-alive"},
                {'Cookie',"AuthSession="},
                {'Host',"localhost:5984"}]
      ------------------------------------------------------------------------------
      [02:31:29] [<0.6258.1>] 'GET' /_log {1,1} from "127.0.0.1"
      Headers: [{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
                {'Accept-Encoding',"gzip, deflate"},
                {'Accept-Language',"en-US,en;q=0.5"},
                {'Connection',"keep-alive"},
                {'Cookie',"AuthSession="},
                {'Host',"localhost:5984"}]
      

      More free space for log message!

      Attachments

        Activity

          People

            robertkowalski Robert Kowalski
            kxepal Alexander Shorin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: