Open ningyougang opened 6 months ago
[x] Add ExcludeKey option to TextFormatter
AS-IS (ExcludeKey : false, this is default)
ExcludeKey : false
time="2024-05-14T16:47:03+09:00" level=warning msg="message"
TO-BE (after applied ExcludeKey : true)
ExcludeKey : true
2024-05-14T16:47:03+09:00 warning message
I think this is a common case, when some log collector agent collect the logs from file or standard output, does not need the startingKey(e.g. time=)
some log collector agent
time=
Can someone review this PR?
[x] Add ExcludeKey option to TextFormatter
AS-IS (
ExcludeKey : false
, this is default)TO-BE (after applied
ExcludeKey : true
)I think this is a common case, when
some log collector agent
collect the logs from file or standard output, does not need the startingKey(e.g.time=
)