mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 16:01:22 +02:00
refactor: move accesslog to logging/accesslog
This commit is contained in:
18
internal/logging/accesslog/stdout_logger.go
Normal file
18
internal/logging/accesslog/stdout_logger.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package accesslog
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
)
|
||||
|
||||
type StdoutLogger struct {
|
||||
io.Writer
|
||||
}
|
||||
|
||||
var stdoutIO = &StdoutLogger{os.Stdout}
|
||||
|
||||
func (l *StdoutLogger) Lock() {}
|
||||
func (l *StdoutLogger) Unlock() {}
|
||||
func (l *StdoutLogger) Name() string {
|
||||
return "stdout"
|
||||
}
|
||||
Reference in New Issue
Block a user