You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(logger): migrate to winston for simpler executable support (#1808)
* fix(logger): migrate to winston for simpler executable support
* refactor(logging): swap logging constants to maintain past 10-days at 5MB caps
* fix(root): log to console if logger/io fails to init
* refactor(logging): rename flush to end to make it clear the stream is closed
---------
Co-authored-by: Hweinstock <hkobew@amazom.com>
// note: we prefer close over end since close calls end on the stream internally: https://github.com/winstonjs/winston-daily-rotate-file/blob/a1a4668cfea77476cd6a4a11f038c2aac9d10741/daily-rotate-file.js#L201-L207
34
+
if(transport.close)transport.close();
35
+
}),
26
36
};
27
37
}
28
38
29
39
/**
30
40
* Creates a logger that writes structured JSON to a rotating file.
0 commit comments