From 394209cb336ebef71b912cc82ad37f017e8fbf26 Mon Sep 17 00:00:00 2001 From: Tom Scavo Date: Tue, 2 May 2017 11:56:41 -0400 Subject: [PATCH] Document log levels --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index defc694..10b97f9 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,21 @@ First let's configure logging. For convenience, we will log directly to the term ```Shell $ export LOG_FILE=/dev/tty +$ export LOG_LEVEL=3 ``` -The system defaults to INFO logging, which corresponds to `LOG_LEVEL=3`. We make that explicit as follows: +Various log levels are supported: -```Shell -$ export LOG_LEVEL=3 -``` +| | `LOG_LEVEL` | +| --- | :---: | +| TRACE | 5 | +| DEBUG | 4 | +| INFO | 3 | +| WARN | 2 | +| ERROR | 1 | +| FATAL | 0 | + +The default logging level is INFO. Next we define a couple of HTTP resources and a cache: