renaming from "package flog" to "package log"
parent
eba8823c9e
commit
a8569fedfb
15
README.md
15
README.md
|
@ -1,18 +1,11 @@
|
|||
# go-flog
|
||||
# go-log
|
||||
|
||||
A library that provides structured and formatted logging for the Go programming language.
|
||||
|
||||
(This package was originally named `flog`, but in version 2 was renamed to `log`.)
|
||||
|
||||
## Documention
|
||||
|
||||
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-flog
|
||||
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-log
|
||||
|
||||
[![GoDoc](https://godoc.org/github.com/reiver/go-flog?status.svg)](https://godoc.org/github.com/reiver/go-flog)
|
||||
|
||||
|
||||
## More Routers
|
||||
|
||||
In addition to the builtin routers that go-flog comes with, other external
|
||||
routers are also available. These include:
|
||||
|
||||
* [go-slackchannelrouter](https://github.com/reiver/go-slackchannelrouter) Makes it so log messages get posted to a [Slack](https://slack.com/) channel.
|
||||
[![GoDoc](https://godoc.org/github.com/reiver/go-log?status.svg)](https://godoc.org/github.com/reiver/go-log)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
func newContext(cascade ...interface{}) map[string]interface{} {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
// NewCopyingRouter returns an initialized CopyingRouter.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"github.com/reiver/go-dotquote"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
var (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
2
doc.go
2
doc.go
|
@ -101,4 +101,4 @@ Makes it so log messages get posted to a Slack channel.
|
|||
https://github.com/reiver/go-slackchannelrouter
|
||||
|
||||
*/
|
||||
package flog
|
||||
package log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
// NewFilteringRouter returns an initialized FilteringRouter.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
type Flogger interface {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
type internalFlogger struct {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
func (flogger *internalFlogger) With(cascade ...interface{}) Flogger {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
func (receiver *internalLogger) MuteAlert() {
|
||||
receiver.mutedDebug = true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
func (receiver *internalLogger) UnmuteAlert() {
|
||||
receiver.mutedAlert = false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
type Logger interface {
|
||||
Alert(...interface{}) error
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
// NewMappingRouter returns an initialized MappingRouter.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
|
||||
// NewNonBlockingRouter returns an initialized NonBlockingRouter.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package flog
|
||||
package log
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
Loading…
Reference in New Issue