1
0
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:
kataras
2017-06-11 23:58:34 +03:00
parent d031ad55b8
commit 74989ad0a1
19 changed files with 60 additions and 409 deletions

View File

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

View File

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

View File

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