platform: Refactor log interface

This commit is contained in:
世界
2023-11-15 13:05:33 +08:00
parent cb327ddb23
commit 3c08ab6689
7 changed files with 35 additions and 19 deletions

6
log/platform.go Normal file
View File

@@ -0,0 +1,6 @@
package log
type PlatformWriter interface {
DisableColors() bool
WriteMessage(level Level, message string)
}