adjust log directory
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user