Skip to content

Commit 153a470

Browse files
committed
Update default logging and README
1 parent bd6993f commit 153a470

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

streams-metric-exporter/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ StreamsInstance -u streamsadmin
129129
130130
password: <enter streamsadmin password>
131131
```
132+
## Changing the default logging
133+
The default logging configuration (log4j.properties) is stored in the executable jar. To override the defaults, create a log4j.properties file and point to it using the log4j.configuration java property. For example:
134+
```
135+
java -Dlog4j.configuration=file:${PWD}/log4j.properties -jar target/executable-streams-metric-exporter.jar -j \
136+
service:jmx:jmxmp://localhost:9975 -d StreamsDomain -i \
137+
StreamsInstance -u streamsadmin
138+
```
132139
# Prometheus Integration
133140

134141
## Endpoint

streams-metric-exporter/src/main/resources/log4j.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ log4j.rootLogger=TRACE,stdout,ROLLINGFILE
33
#
44
# Add Console Output
55
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
6-
log4j.appender.stdout.Threshold=TRACE
6+
log4j.appender.stdout.Threshold=INFO
77
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
88
log4j.appender.stdout.layout.ConversionPattern=%d{MMM dd, yyyy HH:mm:ss} - %-5p [%t:%C{1}@%L] - %m%n
99

0 commit comments

Comments
 (0)