From 7e4ec7df6c10ab0f2f75273d86e975ef6ff680e2 Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Fri, 14 Mar 2014 15:21:54 -0400 Subject: [PATCH] Third party formatter to README. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 30cc6f2..3443d32 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ automatically added to all logging events: #### Environments -Logrus has no notion of environment. +Logrus has no notion of environment. If you wish for hooks and formatters to only be used in specific environments, you should handle that yourself. For example, if your application has a global @@ -166,12 +166,16 @@ Splunk or Logstash. #### Formatters -The built logging formatters are: +The built-in logging formatters are: * `logrus.TextFormatter`. Logs the event in colors if stdout is a tty, otherwise without colors. * `logrus.JSONFormatter`. Logs fields as JSON. +Third party logging formatters: + +* [`github.com/aybabtme/logzalgo.ZalgoFormatter`](https://github.com/aybabtme/logzalgo): invoking the P͉̫o̳̼̊w̖͈̰͎e̬͔̭͂r͚̼̹̲ ̫͓͉̳͈ō̠͕͖̚f̝͍̠ ͕̲̞͖͑Z̖̫̤̫ͪa͉̬͈̗l͖͎g̳̥o̰̥̅!̣͔̲̻͊̄ ̙̘̦̹̦. + You can define your formatter by implementing the `Formatter` interface, requiring a `Format` method. `Format` takes an `*Entry`. `entry.Data` is a `Fields` type (`map[string]interface{}`) with all your fields as well as the