platform: Refactor log interface

This commit is contained in:
世界
2023-11-15 13:05:33 +08:00
parent 3cadc90375
commit 1825869124
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)
}