Skip to content

[#863] Add timestamp to morley-client logs

Description

Problem: Timestamps are very useful in logs, but morley-client logs do not have any.

Solution: Add timestamps to co-log output.

Problem: Morley-client logs, together with timestamps, severity level and source location get pretty unwieldy. Additionally, source locations are usually not very informative, so those could be in most cases omitted.

Solution: Only display source location in high-verbosity mode, i.e. if it's higher than 2 (which is more verbose than "debug").

Related issue(s)

Resolves #863 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Merge request reports