Change LOG_FORMAT to basic
This commit is contained in:
@@ -65,6 +65,6 @@ RUN chmod ug+x /usr/local/bin/runmqserver \
|
||||
# Always use port 1414
|
||||
EXPOSE 1414
|
||||
|
||||
ENV LANG=en_US.UTF-8 AMQ_DIAGNOSTIC_MSG_SEVERITY=1 AMQ_ADDITIONAL_JSON_LOG=1 LOG_FORMAT=simple
|
||||
ENV LANG=en_US.UTF-8 AMQ_DIAGNOSTIC_MSG_SEVERITY=1 AMQ_ADDITIONAL_JSON_LOG=1 LOG_FORMAT=basic
|
||||
|
||||
ENTRYPOINT ["runmqserver"]
|
||||
|
||||
@@ -19,7 +19,7 @@ In order to use the image, it is necessary to accept the terms of the IBM MQ lic
|
||||
* **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`.
|
||||
* **LANG** - Set this to the language you would like the license to be printed in.
|
||||
* **MQ_QMGR_NAME** - Set this to the name you want your Queue Manager to be created with.
|
||||
* **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".
|
||||
* **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".
|
||||
|
||||
|
||||
# Issues and contributions
|
||||
|
||||
@@ -94,10 +94,10 @@ func configureLogger() (mirrorFunc, error) {
|
||||
d := getDebug()
|
||||
switch f {
|
||||
case "json":
|
||||
log = logger.NewLogger(os.Stdout, d, true)
|
||||
log = logger.NewLogger(os.Stderr, d, true)
|
||||
return log.LogDirect, nil
|
||||
case "simple":
|
||||
log = logger.NewLogger(os.Stdout, d, false)
|
||||
case "basic":
|
||||
log = logger.NewLogger(os.Stderr, d, false)
|
||||
return func(msg string) {
|
||||
// Parse the JSON message, and print a simplified version
|
||||
var obj map[string]interface{}
|
||||
|
||||
Reference in New Issue
Block a user