Skip to content

Commit

Permalink
log updates
Browse files Browse the repository at this point in the history
  • Loading branch information
timj-hh committed Oct 19, 2023
1 parent a81064e commit 1d4c777
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion ecs-agent/logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ func setInstanceLevelDefault() string {

func init() {
Config = &logConfig{
logfile: os.Getenv(LOGFILE_ENV_VAR),
// logfile: os.Getenv(LOGFILE_ENV_VAR),
logfile: "/var/log/ecs/ecs-agente.log"
driverLevel: DEFAULT_LOGLEVEL,
instanceLevel: setInstanceLevelDefault(),
RolloverType: DEFAULT_ROLLOVER_TYPE,
Expand All @@ -257,6 +258,10 @@ func InitSeelog() {
seelog.Error(err)
}

seelog.Info(Config)
seelog.Info(Config.logfile)
seelog.Info("PRINTING SEELOG NOW")

SetLevel(os.Getenv(LOGLEVEL_ENV_VAR), os.Getenv(LOGLEVEL_ON_INSTANCE_ENV_VAR))

if RolloverType := os.Getenv(LOG_ROLLOVER_TYPE_ENV_VAR); RolloverType != "" {
Expand Down

0 comments on commit 1d4c777

Please sign in to comment.