adjust log directory

This commit is contained in:
nuknal
2024-07-18 10:47:24 +08:00
parent 0d1fea2f5d
commit 688f709b39
5 changed files with 26 additions and 9 deletions

View File

@@ -9,7 +9,12 @@ type Config struct {
CoRegistration CoRegistrationConfig `yaml:"coregistration" mapstructure:"coregistration"`
Radiation RadiationConfig `yaml:"radiation" mapstructure:"radiation"`
BrowserImg BrowserImgConfig `yaml:"browser_img" mapstructure:"browser_img"`
LogLevel logrus.Level `yaml:"log_level" mapstructure:"log_level"`
Log LogConfig `yaml:"log" mapstructure:"log"`
}
type LogConfig struct {
LogLevel logrus.Level `yaml:"log_level" mapstructure:"log_level"`
LogDir string `yaml:"log_dir" mapstructure:"log_dir"`
}
type CoRegistrationConfig struct {
@@ -44,7 +49,10 @@ var GCONFIG Config
func init() {
GCONFIG = Config{
LogLevel: logrus.DebugLevel,
Log: LogConfig{
LogLevel: logrus.DebugLevel,
LogDir: "log/SJY01ImageProc",
},
CoRegistration: CoRegistrationConfig{
MssBands: 4,
PixelBytes: 2,