renaming from "package flog" to "package log"

master
Charles Iliya Krempeaux 2022-06-29 06:56:41 -07:00
parent eba8823c9e
commit a8569fedfb
59 changed files with 62 additions and 69 deletions

View File

@ -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)

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
func newContext(cascade ...interface{}) map[string]interface{} {

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
// NewCopyingRouter returns an initialized CopyingRouter.

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"os"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"github.com/reiver/go-dotquote"

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
var (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

2
doc.go
View File

@ -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

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
// NewFilteringRouter returns an initialized FilteringRouter.

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
type Flogger interface {

View File

@ -1,4 +1,4 @@
package flog
package log
type internalFlogger struct {

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
func (flogger *internalFlogger) With(cascade ...interface{}) Flogger {

View File

@ -1,4 +1,4 @@
package flog
package log
import (

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"io"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"bytes"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"runtime"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"bytes"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"bytes"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"bytes"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"bytes"

View File

@ -1,4 +1,4 @@
package flog
package log
func (receiver *internalLogger) MuteAlert() {
receiver.mutedDebug = true

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"strings"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"bytes"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"bytes"

View File

@ -1,4 +1,4 @@
package flog
package log
func (receiver *internalLogger) UnmuteAlert() {
receiver.mutedAlert = false

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"bytes"

View File

@ -1,4 +1,4 @@
package flog
package log
type Logger interface {
Alert(...interface{}) error

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"testing"

View File

@ -1,4 +1,4 @@
package flog
package log
// NewMappingRouter returns an initialized MappingRouter.

View File

@ -1,4 +1,4 @@
package flog
package log
// NewNonBlockingRouter returns an initialized NonBlockingRouter.

View File

@ -1,4 +1,4 @@
package flog
package log
import (
"fmt"

View File

@ -1,4 +1,4 @@
package flog
package log
type Router interface {