Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-241

mongodb.debug_log improvements -> mongodb.debug

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.5.1
    • Affects Version/s: 0.4.1
    • Component/s: None
    • None

      It'd be nice if the debug log (mongodb.debug_log) could have microsecond precision.

      I'm wondering what other things it should include to make it a one-stop-gap when requesting debug logs.

      • Rename to mongodb.debug
      • driver name (phongo/hippo)
      • driver version
      • mongoc and libbson versions
      • connection string
      • connection options

      The mongodb.debug must be a directory (or stderr/stdout), not a single filename, otherwise we'll get very mangled and confusing logs when multiple processes append to the same log.

      mongodb.debug=off/0/""
          Disables debugging, Default value is ""
      mongodb.debug=on/1
          Creates new unique debug log in the system temp directory (typically /tmp) with a filename prefix PHONGO-<timestamp>
      mongodb.debug=/path/to/folder
          Creates new unique debug log in the provided directory with a filename prefix PHONGO-<timestamp>
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: