MM-25731 Advanced Logging (#14888)
Adds Advanced Logging to server. Advanced Logging is an optional logging capability that allows customers to send log records to any number of destinations. Supported destinations: - file - syslog (with out without TLS) - raw TCP socket (with out without TLS) Allows developers to specify discrete log levels as well as the standard trace, debug, info, ... panic. Existing code and logging API usage is unchanged. Log records are emitted asynchronously to reduce latency to the caller. Supports hot-reloading of logger config, including adding removing targets. Advanced Logging is configured within config.json via "LogSettings.AdvancedLoggingConfig" which can contain a filespec to another config file, a database DSN, or JSON.
Этот коммит содержится в:
0
vendor/github.com/wiggin77/logr/.gitignore → vendor/github.com/mattermost/logr/.gitignore
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/.gitignore → vendor/github.com/mattermost/logr/.gitignore
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/.travis.yml → vendor/github.com/mattermost/logr/.travis.yml
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/.travis.yml → vendor/github.com/mattermost/logr/.travis.yml
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/LICENSE → vendor/github.com/mattermost/logr/LICENSE
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/LICENSE → vendor/github.com/mattermost/logr/LICENSE
сгенерированный
поставляемый
5
vendor/github.com/wiggin77/logr/README.md → vendor/github.com/mattermost/logr/README.md
сгенерированный
поставляемый
5
vendor/github.com/wiggin77/logr/README.md → vendor/github.com/mattermost/logr/README.md
сгенерированный
поставляемый
@@ -1,8 +1,7 @@
|
||||
# logr
|
||||
|
||||
[](http://godoc.org/github.com/wiggin77/logr)
|
||||
[](https://travis-ci.com/wiggin77/logr)
|
||||
[](https://goreportcard.com/report/github.com/wiggin77/logr)
|
||||
[](http://godoc.org/github.com/mattermost/logr)
|
||||
[](https://goreportcard.com/report/github.com/mattermost/logr)
|
||||
|
||||
Logr is a fully asynchronous, contextual logger for Go.
|
||||
|
||||
0
vendor/github.com/wiggin77/logr/config.go → vendor/github.com/mattermost/logr/config.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/config.go → vendor/github.com/mattermost/logr/config.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/const.go → vendor/github.com/mattermost/logr/const.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/const.go → vendor/github.com/mattermost/logr/const.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/filter.go → vendor/github.com/mattermost/logr/filter.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/filter.go → vendor/github.com/mattermost/logr/filter.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/format/json.go → vendor/github.com/mattermost/logr/format/json.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/format/json.go → vendor/github.com/mattermost/logr/format/json.go
сгенерированный
поставляемый
@@ -9,7 +9,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/francoispqt/gojay"
|
||||
"github.com/wiggin77/logr"
|
||||
"github.com/mattermost/logr"
|
||||
)
|
||||
|
||||
// ContextField is a name/value pair within the context fields.
|
||||
2
vendor/github.com/wiggin77/logr/format/plain.go → vendor/github.com/mattermost/logr/format/plain.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/format/plain.go → vendor/github.com/mattermost/logr/format/plain.go
сгенерированный
поставляемый
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
|
||||
"github.com/wiggin77/logr"
|
||||
"github.com/mattermost/logr"
|
||||
)
|
||||
|
||||
// Plain is the simplest formatter, outputting only text with
|
||||
0
vendor/github.com/wiggin77/logr/formatter.go → vendor/github.com/mattermost/logr/formatter.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/formatter.go → vendor/github.com/mattermost/logr/formatter.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/go.mod → vendor/github.com/mattermost/logr/go.mod
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/go.mod → vendor/github.com/mattermost/logr/go.mod
сгенерированный
поставляемый
@@ -1,4 +1,4 @@
|
||||
module github.com/wiggin77/logr
|
||||
module github.com/mattermost/logr
|
||||
|
||||
go 1.12
|
||||
|
||||
0
vendor/github.com/wiggin77/logr/go.sum → vendor/github.com/mattermost/logr/go.sum
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/go.sum → vendor/github.com/mattermost/logr/go.sum
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/levelcache.go → vendor/github.com/mattermost/logr/levelcache.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/levelcache.go → vendor/github.com/mattermost/logr/levelcache.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/levelcustom.go → vendor/github.com/mattermost/logr/levelcustom.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/levelcustom.go → vendor/github.com/mattermost/logr/levelcustom.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/levelstd.go → vendor/github.com/mattermost/logr/levelstd.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/levelstd.go → vendor/github.com/mattermost/logr/levelstd.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/logger.go → vendor/github.com/mattermost/logr/logger.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/logger.go → vendor/github.com/mattermost/logr/logger.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/logr.go → vendor/github.com/mattermost/logr/logr.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/logr.go → vendor/github.com/mattermost/logr/logr.go
сгенерированный
поставляемый
@@ -195,7 +195,7 @@ func (logr *Logr) IsLevelEnabled(lvl Level) LevelStatus {
|
||||
|
||||
// Cache and return the result.
|
||||
if err := logr.lvlCache.put(lvl.ID, status); err != nil {
|
||||
logr.OnLoggerError(err)
|
||||
logr.ReportError(err)
|
||||
return LevelStatus{}
|
||||
}
|
||||
return status
|
||||
0
vendor/github.com/wiggin77/logr/logrec.go → vendor/github.com/mattermost/logr/logrec.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/logrec.go → vendor/github.com/mattermost/logr/logrec.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/target.go → vendor/github.com/mattermost/logr/target.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/target.go → vendor/github.com/mattermost/logr/target.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/target/file.go → vendor/github.com/mattermost/logr/target/file.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/target/file.go → vendor/github.com/mattermost/logr/target/file.go
сгенерированный
поставляемый
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"io"
|
||||
|
||||
"github.com/wiggin77/logr"
|
||||
"github.com/mattermost/logr"
|
||||
"github.com/wiggin77/merror"
|
||||
"gopkg.in/natefinch/lumberjack.v2"
|
||||
)
|
||||
2
vendor/github.com/wiggin77/logr/target/syslog.go → vendor/github.com/mattermost/logr/target/syslog.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/target/syslog.go → vendor/github.com/mattermost/logr/target/syslog.go
сгенерированный
поставляемый
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"log/syslog"
|
||||
|
||||
"github.com/wiggin77/logr"
|
||||
"github.com/mattermost/logr"
|
||||
"github.com/wiggin77/merror"
|
||||
)
|
||||
|
||||
2
vendor/github.com/wiggin77/logr/target/writer.go → vendor/github.com/mattermost/logr/target/writer.go
сгенерированный
поставляемый
2
vendor/github.com/wiggin77/logr/target/writer.go → vendor/github.com/mattermost/logr/target/writer.go
сгенерированный
поставляемый
@@ -4,7 +4,7 @@ import (
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/wiggin77/logr"
|
||||
"github.com/mattermost/logr"
|
||||
)
|
||||
|
||||
// Writer outputs log records to any `io.Writer`.
|
||||
0
vendor/github.com/wiggin77/logr/timeout.go → vendor/github.com/mattermost/logr/timeout.go
сгенерированный
поставляемый
0
vendor/github.com/wiggin77/logr/timeout.go → vendor/github.com/mattermost/logr/timeout.go
сгенерированный
поставляемый
Ссылка в новой задаче
Block a user