Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Commit 31a3694

Browse files
committed
update badge
1 parent fc4f23a commit 31a3694

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Logger [![GoDoc](https://godoc.org/github.com/unrolled/logger?status.svg)](http://godoc.org/github.com/unrolled/logger) [![Build Status](https://travis-ci.org/unrolled/logger.svg)](https://travis-ci.org/unrolled/logger)
1+
# Logger [![GoDoc](https://godoc.org/github.com/unrolled/logger?status.svg)](http://godoc.org/github.com/unrolled/logger) [![Test](https://github.com/unrolled/logger/workflows/Test/badge.svg)](https://github.com/unrolled/logger/actions)
22

33
Logger is an HTTP middleware for Go that logs web requests to an io.Writer (the default being `os.Stdout`). It's a standard net/http [Handler](http://golang.org/pkg/net/http/#Handler), and can be used with many frameworks or directly with Go's net/http package.
44

@@ -48,7 +48,7 @@ Logger comes with a variety of configuration options (Note: these are not the de
4848

4949
~~~ go
5050
// ...
51-
l := logger.New(logger.Options{
51+
l := logger.New(logger.Options{
5252
Prefix: "myApp", // Prefix is the outputted keyword in front of the log message. Logger automatically wraps the prefix in square brackets (ie. [myApp] ) unless the `DisableAutoBrackets` is set to true. A blank value will not have brackets added. Default is blank (with no brackets).
5353
DisableAutoBrackets: false, // DisableAutoBrackets if set to true, will remove the prefix and square brackets. Default is false.
5454
RemoteAddressHeaders: []string{"X-Forwarded-For"}, // RemoteAddressHeaders is a list of header keys that Logger will look at to determine the proper remote address. Useful when using a proxy like Nginx: `[]string{"X-Forwarded-For"}`. Default is an empty slice, and thus will use `reqeust.RemoteAddr`.
@@ -67,7 +67,7 @@ l := logger.New()
6767

6868
// Is the same as the default configuration options:
6969

70-
l := logger.New(logger.Options{
70+
l := logger.New(logger.Options{
7171
Prefix: "",
7272
DisableAutoBrackets: false,
7373
RemoteAddressHeaders: []string{},

0 commit comments

Comments
 (0)