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
- Update CI to test v3
- Update v3 dependencies to recent versions
- Move compat layer out into its own package/module
- Add documentation explaining what changed
- fix CONTRIBUTORS and remove duplicate file
- run gofmt and check in the results
- remove the 'term' package from v3
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,40 @@
4
4
5
5
Package log15 provides an opinionated, simple toolkit for best-practice logging in Go (golang) that is both human and machine readable. It is modeled after the Go standard library's [`io`](http://golang.org/pkg/io/) and [`net/http`](http://golang.org/pkg/net/http/) packages and is an alternative to the standard library's [`log`](http://golang.org/pkg/log/) package.
6
6
7
+
## v3 upgrade
8
+
9
+
Version 3 compiles with Go modules. It also provides some basic simplifications:
10
+
11
+
- For performance, the `Call` property has been removed from a `log15.Record`.
12
+
13
+
- The CallerStackHandler, CallerFuncHandler, and CallerFileHandler
14
+
have been removed (all three relied on the `Call` property).
15
+
16
+
- The `term` subpackage has been removed (there are multiple better replacements
17
+
you can use now).
18
+
19
+
In most cases, however, it should be sufficient to just change your import path:
0 commit comments