You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Features
18
18
-[x] Logger is simple, only logic to create the log entry and send it off to the handlers and they take it from there.
19
19
-[x] Sends the log entry to the handlers asynchronously, but waits for all to complete; meaning all your handlers can be dealing with the log entry at the same time, but log will wait until all have completed before moving on.
20
20
-[x] Ability to specify which log levels get sent to each handler
21
-
-[x] Built-in console, syslog, http and email handlers
21
+
-[x] Built-in console, syslog, http, HipChat and email handlers
22
22
-[x] Handlers are simple to write + easy to register
23
23
-[x] Logger is a singleton ( one of the few instances a singleton is desired ) so the root package registers which handlers are used and any libraries just follow suit.
24
24
@@ -181,10 +181,18 @@ Log Level Definitions
181
181
182
182
**FatalLevel** - Should be corrected immediately, but indicates failure in a primary system, an example is a loss of a backup ISP connection. ( same as SYSLOG CRITICAL )
183
183
184
-
More Handlers
184
+
Handlers
185
185
-------------
186
186
Pull requests for new handlers are welcome, please provide test coverage is all I ask.
187
187
188
+
| Handler | Description | Docs |
189
+
| ------- | ---- | ----------- |
190
+
| console | Allows for log messages to be sent to a any writer, default os.Stderr |[](https://godoc.org/github.com/go-playground/log/handlers/console)|
191
+
| syslog | Allows for log messages to be sent via syslog. |[](https://godoc.org/github.com/go-playground/log/handlers/syslog)|
192
+
| http | Allows for log messages to be sent via http. Can use the HTTP handler as a base for creating other handlers requiring http transmission. |[](https://godoc.org/github.com/go-playground/log/handlers/http)|
193
+
| email | Allows for log messages to be sent via email. |[](https://godoc.org/github.com/go-playground/log/handlers/email)|
194
+
| hipchat | Allows for log messages to be sent to a hipchat room. |[](https://godoc.org/github.com/go-playground/log/handlers/http/hipchat)|
195
+
188
196
Package Versioning
189
197
----------
190
198
I'm jumping on the vendoring bandwagon, you should vendor this package as I will not
0 commit comments