JOJ3/internal/parser/log/meta.go
张泊明518370910136 498fcf2cdf
All checks were successful
submodules sync / sync (push) Successful in 39s
build / build (push) Successful in 1m31s
build / trigger-build-image (push) Successful in 8s
chore: FileName -> Filename
2025-06-21 13:14:48 -04:00

20 lines
413 B
Go

// Package log logs the json key-value pairs from given file. The log can be
// used for Loki that contains run time status.
package log
import "github.com/joint-online-judge/JOJ3/internal/stage"
var name = "log"
type Conf struct {
Filename string `default:"stdout"`
Msg string `default:"log msg"`
Level int `default:"0"`
}
type Log struct{}
func init() {
stage.RegisterParser(name, &Log{})
}