Skip to content

Add logging configuration#29

Merged
talex5 merged 1 commit into
mirage:masterfrom
talex5:logging
Dec 22, 2020
Merged

Add logging configuration#29
talex5 merged 1 commit into
mirage:masterfrom
talex5:logging

Conversation

@talex5
Copy link
Copy Markdown
Contributor

@talex5 talex5 commented Dec 22, 2020

To configure a server to report counts for log messages:

let () = Prometheus_unix.Logging.init ()

This installs a reporter that reports number of messages logged by each log source and at each level. The reporter also displays the timestamp and log source with each message, which is a more suitable configuration for servers.

To configure a server to report counts for log messages:

    let () = Prometheus_unix.Logging.init ()

This installs a reporter that reports number of messages logged by each
log source and at each level. The reporter also displays the timestamp
and log source with each message, which is a more suitable configuration
for servers.
@talex5 talex5 merged commit 2704607 into mirage:master Dec 22, 2020
@talex5 talex5 deleted the logging branch December 22, 2020 10:48
talex5 added a commit to talex5/opam-repository that referenced this pull request Dec 22, 2020
CHANGES:

- Add logging configuration (mirage/prometheus#29, @talex5).
  To configure a server to report counts for log messages:
  ```ocaml
  let () = Prometheus_unix.Logging.init ()
  ```
  This installs a reporter that reports the number of messages logged by each log source and at each level.
  The reporter also displays the timestamp and log source with each message, which is a more suitable configuration for servers.

- Add bounds on cohttp to prepare for cohttp 3 release (mirage/prometheus#28, @talex5).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant