Skip to content

Pretty Print MongoDB server output #599

@hasezoey

Description

@hasezoey

for mongodb 4.4, they have changed to use logs as json, currently we are printing them as-is, but it is pretty hard to debug as they are

this is a tracking issue for pretty printing this new log output

implementation details:

  • only process the lines when debug mode is enabled (for the MongoInstance file)
  • process each new line separately
  • process JSON into something resembling like the old log format
  • have a flag to disable this pretty-printing (because this can be really resource intensive)

also, a alternative could be to write something to read in the finished log and colorize and sort it for faster debugging

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