Browse files

Added note about formatters

  • Loading branch information...
1 parent a426ce2 commit 81c6cd3ed11ce8ad12995fb154905012086693a6 @Seldaek committed Feb 21, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.mdown
@@ -24,6 +24,8 @@ This allow for flexible logging setups, for example having a FileHandler at the
You can create many Loggers, each defining a channel (e.g.: db, request, router, ..) and each of them combining various handlers, which can be shared or not. The channel is reflected in the logs and allows you to easily see or filter messages.
+Each Handler also has a Formatter, a default one with settings that make sense will be created if you don't set one. The formatters normalize and format incoming messages so that they can be used by the handlers to output useful information.
Custom severity levels are not available. Only four levels (debug, info, warning, error) are present for basic filtering purposes, but for sorting and other use cases that would require flexibility, you should add Processors to the Logger that can add extra information (tags, user ip, ..) to the messages before they are handled.
Notable Features (non-exhaustive and incomplete)

0 comments on commit 81c6cd3

Please sign in to comment.