Skip to content

Commit a14da7a

Browse files
committed
Change LOG_FORMAT to basic
1 parent ab60a89 commit a14da7a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Dockerfile-server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ RUN chmod ug+x /usr/local/bin/runmqserver \
6565
# Always use port 1414
6666
EXPOSE 1414
6767

68-
ENV LANG=en_US.UTF-8 AMQ_DIAGNOSTIC_MSG_SEVERITY=1 AMQ_ADDITIONAL_JSON_LOG=1 LOG_FORMAT=simple
68+
ENV LANG=en_US.UTF-8 AMQ_DIAGNOSTIC_MSG_SEVERITY=1 AMQ_ADDITIONAL_JSON_LOG=1 LOG_FORMAT=basic
6969

7070
ENTRYPOINT ["runmqserver"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In order to use the image, it is necessary to accept the terms of the IBM MQ lic
1919
* **LICENSE** - Set this to `accept` to agree to the MQ Advanced for Developers license. If you wish to see the license you can set this to `view`.
2020
* **LANG** - Set this to the language you would like the license to be printed in.
2121
* **MQ_QMGR_NAME** - Set this to the name you want your Queue Manager to be created with.
22-
* **LOG_FORMAT** - Set this to change the format of the logs which are printed on the container's stdout. Set to "json" to use JSON format (JSON object per line); set to "simple" to use a simple human-readable. Defaults to "simple".
22+
* **LOG_FORMAT** - Set this to change the format of the logs which are printed on the container's stdout. Set to "json" to use JSON format (JSON object per line); set to "basic" to use a simple human-readable. Defaults to "basic".
2323

2424

2525
# Issues and contributions

cmd/runmqserver/logging.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ func configureLogger() (mirrorFunc, error) {
9494
d := getDebug()
9595
switch f {
9696
case "json":
97-
log = logger.NewLogger(os.Stdout, d, true)
97+
log = logger.NewLogger(os.Stderr, d, true)
9898
return log.LogDirect, nil
99-
case "simple":
100-
log = logger.NewLogger(os.Stdout, d, false)
99+
case "basic":
100+
log = logger.NewLogger(os.Stderr, d, false)
101101
return func(msg string) {
102102
// Parse the JSON message, and print a simplified version
103103
var obj map[string]interface{}

0 commit comments

Comments
 (0)