Skip to content

Commit 1b35054

Browse files
authored
Merge pull request #24 from arthurbarr/master
Logging updates
2 parents 6f8b47a + 104098c commit 1b35054

File tree

5 files changed

+8
-49
lines changed

5 files changed

+8
-49
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"]

NOTICES.txt

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ A. SUMMARY
1313
===============================================================================
1414
Section B. below contains provisions relating to certain other components of the Program, as follows:-
1515

16-
B.1 MIT license
17-
Affected Components:
18-
* sirupsen/logrus
19-
Copyright (c) 2014 Simon Eskildsen
20-
21-
B.2 BSD 3-Clause license
16+
B.1 BSD 3-Clause license
2217
Affected Components:
2318
* golang.org/x/crypto
2419
Copyright (c) 2009 The Go Authors. All rights reserved.
@@ -32,30 +27,7 @@ END OF A. SUMMARY
3227
B. LICENSE FILES AND OTHER INFORMATION
3328
==========================================================================
3429
==========================================================================
35-
B.1 MIT license
36-
==========================================================================
37-
Permission is hereby granted, free of charge, to any person obtaining a copy
38-
of this software and associated documentation files (the "Software"), to deal
39-
in the Software without restriction, including without limitation the rights
40-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41-
copies of the Software, and to permit persons to whom the Software is
42-
furnished to do so, subject to the following conditions:
43-
The above copyright notice and this permission notice shall be included in all
44-
copies or substantial portions of the Software.
45-
46-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
52-
SOFTWARE.
53-
==========================================================================
54-
END OF B.1 MIT license
55-
==========================================================================
56-
57-
==========================================================================
58-
B.2 BSD 3-Clause license
30+
B.1 BSD 3-Clause license
5931
==========================================================================
6032
Redistribution and use in source and binary forms, with or without
6133
modification, are permitted provided that the following conditions are
@@ -83,7 +55,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
8355
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
8456
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8557
==========================================================================
86-
END OF B.2 BSD 3-Clause license
58+
END OF B.1 BSD 3-Clause license
8759
==========================================================================
8860

8961
==========================================================================

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{}

docs/alpha.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)