mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-04 12:27:36 +03:00
Inbound rule support
This commit is contained in:
parent
9f4c0ff624
commit
7c57eb70e8
34 changed files with 622 additions and 247 deletions
50
log/nop.go
Normal file
50
log/nop.go
Normal file
|
@ -0,0 +1,50 @@
|
|||
package log
|
||||
|
||||
import "context"
|
||||
|
||||
var _ Logger = (*nopLogger)(nil)
|
||||
|
||||
type nopLogger struct{}
|
||||
|
||||
func NewNopLogger() Logger {
|
||||
return (*nopLogger)(nil)
|
||||
}
|
||||
|
||||
func (l *nopLogger) Trace(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) Debug(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) Info(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) Print(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) Warn(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) Warning(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) Error(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) Fatal(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) Panic(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (l *nopLogger) WithContext(ctx context.Context) Logger {
|
||||
return l
|
||||
}
|
||||
|
||||
func (l *nopLogger) WithPrefix(prefix string) Logger {
|
||||
return l
|
||||
}
|
||||
|
||||
func (l *nopLogger) Close() error {
|
||||
return nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue