-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add timestamps to management, server and agent .err logs #12967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,6 @@ under the License. | |
| <PatternLayout pattern="%d{DEFAULT} %-5p [%c{1.}] (%t:%x) (logid:%X{logcontextid}) %m%ex{filters(${filters})}%n"/> | ||
| </RollingFile> | ||
|
|
||
|
|
||
| <RollingFile name="APISERVER" append="true" fileName="@APISERVERLOG@" filePattern="@APISERVERLOG@.%d{yyyy-MM-dd}.gz"> | ||
| <ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY"/> | ||
| <Policies> | ||
|
|
@@ -70,7 +69,7 @@ under the License. | |
|
|
||
| <Console name="CONSOLE" target="SYSTEM_OUT"> | ||
| <ThresholdFilter level="OFF" onMatch="ACCEPT" onMismatch="DENY"/> | ||
| <PatternLayout pattern="%-5p [%c{1.}] (%t:%x) (logid:%X{logcontextid}) %m%ex{filters(${filters})}%n"/> | ||
| <PatternLayout pattern="%d{DEFAULT} %-5p [%c{1.}] (%t:%x) (logid:%X{logcontextid}) %m%ex{filters(${filters})}%n"/> | ||
| </Console> | ||
|
Comment on lines
70
to
73
|
||
|
|
||
| <!-- ============================== --> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ under the License. | |
| <!-- Preserve messages in a local file --> | ||
| <!-- ================================= --> | ||
|
|
||
|
|
||
| <!-- A regular appender --> | ||
| <RollingFile name="FILE" append="true" fileName="@MSLOG@" filePattern="@MSLOG@.%d{yyyy-MM-dd}.gz"> | ||
| <ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY"/> | ||
|
|
@@ -34,7 +33,6 @@ under the License. | |
| <PatternLayout pattern="%d{DEFAULT} %-5p [%c{1.}] (%t:%x) %m%ex%n"/> | ||
| </RollingFile> | ||
|
|
||
|
|
||
| <RollingFile name="INFO-FILE" append="true" fileName="/var/log/cloudstack/management/management-server-info.log" filePattern="/var/log/cloudstack/management/management-server-info.log.%d{yyyy-MM-dd}.gz"> | ||
| <ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/> | ||
| <Policies> | ||
|
|
@@ -43,7 +41,6 @@ under the License. | |
| <PatternLayout pattern="%d{DEFAULT} %-5p [%c{1.}] (%t:%x) (logid:%X{logcontextid}) %m%ex%n"/> | ||
| </RollingFile> | ||
|
|
||
|
|
||
| <RollingFile name="APISERVER" append="true" fileName="@APISERVERLOG@" filePattern="@APISERVERLOG@.%d{yyyy-MM-dd}.gz"> | ||
| <ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY"/> | ||
| <Policies> | ||
|
|
@@ -56,7 +53,6 @@ under the License. | |
| <!-- Append warnings+ to the syslog if it is listening on UDP port --> | ||
| <!-- ============================== --> | ||
|
|
||
|
|
||
| <Syslog name="SYSLOG" host="localhost" facility="LOCAL6"> | ||
| <ThresholdFilter level="WARN" onMatch="ACCEPT" onMismatch="DENY"/> | ||
| <PatternLayout pattern="%-5p [%c{1.}] (%t:%x) %m%ex%n"/> | ||
|
|
@@ -68,7 +64,7 @@ under the License. | |
|
|
||
| <Console name="CONSOLE" target="SYSTEM_OUT"> | ||
| <ThresholdFilter level="OFF" onMatch="ACCEPT" onMismatch="DENY"/> | ||
| <PatternLayout pattern="%-5p [%c{1.}] (%t:%x) %m%ex%n"/> | ||
| <PatternLayout pattern="%d{DEFAULT} %-5p [%c{1.}] (%t:%x) %m%ex%n"/> | ||
| </Console> | ||
|
Comment on lines
65
to
68
|
||
| </Appenders> | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same concern here: if
.erris sourced from stderr as stated in the PR description, this console appender targetingSYSTEM_OUTwon’t influence.errformatting. Consider usingtarget=\"SYSTEM_ERR\"(or aligning systemd routing) to ensure.errlines include the new timestamp.