Skip to content

Commit 3a78c9a

Browse files
committed
feat: define logRecordOrder option in Logger types
1 parent e4eee73 commit 3a78c9a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/logger/src/types/Log.ts

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ type LogFormatterOptions = {
132132
* If set, it gives the LogFormatter access to environment variables.
133133
*/
134134
envVarsService?: EnvironmentVariablesService;
135+
136+
logRecordOrder?: Array<keyof UnformattedAttributes>;
135137
};
136138

137139
/**

packages/logger/src/types/Logger.ts

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type BaseConstructorOptions = {
3535
logFormatter?: LogFormatterInterface;
3636
customConfigService?: ConfigServiceInterface;
3737
environment?: Environment;
38+
logRecordOrder?: Array<keyof UnformattedAttributes>;
3839
};
3940

4041
type PersistentKeysOption = {

0 commit comments

Comments
 (0)