mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 13:35:59 +00:00
Remove internal/cmd/gen, it has no use for the end-developer.
Former-commit-id: 12bead9d379c6644e391c482fe71b2e88263376c
This commit is contained in:
@@ -12,6 +12,9 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// NewDevLogger returns a new logger of io.Writer which
|
||||
// formats its log message input and writes it
|
||||
// to the os.Stdout.
|
||||
func NewDevLogger(omitTimeFor ...string) io.Writer {
|
||||
mu := &sync.Mutex{} // for now and last log
|
||||
lastLog := time.Now()
|
||||
|
||||
@@ -26,7 +26,7 @@ type stringWriter interface {
|
||||
WriteString(string) (int, error)
|
||||
}
|
||||
|
||||
// Log sends a message to the defined io.Writer logger, it's
|
||||
// Log sends a message to the defined logger of io.Writer logger, it's
|
||||
// just a help function for internal use but it can be used to a cusotom middleware too.
|
||||
//
|
||||
// See AttachLogger too.
|
||||
|
||||
@@ -4,4 +4,6 @@
|
||||
|
||||
package logger
|
||||
|
||||
// NoOpLogger returns a new, non-operational logger of io.Writer,
|
||||
// it does nothing any form of input.
|
||||
var NoOpLogger = writerFunc(func([]byte) (int, error) { return -1, nil })
|
||||
|
||||
Reference in New Issue
Block a user