Ticket #6933 (closed: fixed)
Add logging channel to std::cout
Reported by: | Andrei Savici | Owned by: | Andrei Savici |
---|---|---|---|
Priority: | major | Milestone: | Release 2.5 |
Component: | Mantid | Keywords: | |
Cc: | rens@… | Blocked By: | |
Blocking: | Tester: | Russell Taylor |
Description
ConsoleChannel output is to std::clog, which is the same as std::cerr. For separating logging and errors, the output should be std::cout. Needs a POCO expansion
Attachments
Change History
comment:2 Changed 7 years ago by Andrei Savici
To test: Change your Mantid.user.properties by adding logging.channels.consoleChannel.class=StdChannel then change the paths in reduction.py, and run python process.py. There should be two output files: test.log and test.err. The log file contains Mantid logging information and anything you print out, the err file contains errors.
If your logging channel is set to ConsoleChannel, test.log contains only what you print in reduction.py, and mantid logs and errors all go to the .err file
comment:3 Changed 7 years ago by Andrei Savici
Log channel for std::cout. Refs #6933
Changeset: 5f4108211d047da4b4702aa280cae9e2370e52b1
comment:4 Changed 7 years ago by Andrei Savici
Log channel for std::cout. Refs #6933
Changeset: 5f4108211d047da4b4702aa280cae9e2370e52b1
comment:5 Changed 7 years ago by Andrei Savici
UnitTest for StdChannel. Refs #6933
Changeset: 307ddb81a0ac00c413db445a35fc3203b553a87d
comment:6 Changed 7 years ago by Andrei Savici
UnitTest for StdChannel. Refs #6933
Changeset: 307ddb81a0ac00c413db445a35fc3203b553a87d
comment:7 Changed 7 years ago by Andrei Savici
- Status changed from accepted to verify
- Resolution set to fixed
Branch feature/6933_NewLoggingChannel
comment:8 Changed 7 years ago by Russell Taylor
- Status changed from verify to verifying
- Tester set to Russell Taylor
comment:9 Changed 7 years ago by Andrei Savici
Renamed StdChannel to StdoutChannel. Refs #6933
Changeset: acda4b09bf812e8e6d45e1509863b1f9e4a037e0
comment:10 Changed 7 years ago by Andrei Savici
One more name correction. Refs #6933
Changeset: 73ed5294f7994ff232c0af40b0fd62100be9195c
comment:11 Changed 7 years ago by Andrei Savici
Add comments. Refs #6933
Changeset: 4b1fcce3a028face6db86507fa7da28da93d4eed
comment:12 Changed 7 years ago by Andrei Savici
Renamed StdChannel to StdoutChannel. Refs #6933
Changeset: acda4b09bf812e8e6d45e1509863b1f9e4a037e0
comment:13 Changed 7 years ago by Andrei Savici
One more name correction. Refs #6933
Changeset: 73ed5294f7994ff232c0af40b0fd62100be9195c
comment:14 Changed 7 years ago by Andrei Savici
Remove unused file. Refs #6933
Changeset: 87dfa6c6459a1a3143636e49bc528849aa31b048
comment:15 Changed 7 years ago by Andrei Savici
Remove unused file. Refs #6933
Changeset: 87dfa6c6459a1a3143636e49bc528849aa31b048
comment:16 Changed 7 years ago by Andrei Savici
Log channel for std::cout. Refs #6933
Changeset: 5f4108211d047da4b4702aa280cae9e2370e52b1
comment:17 Changed 7 years ago by Andrei Savici
UnitTest for StdChannel. Refs #6933
Changeset: 307ddb81a0ac00c413db445a35fc3203b553a87d
comment:18 Changed 7 years ago by Andrei Savici
Renamed StdChannel to StdoutChannel. Refs #6933
Changeset: acda4b09bf812e8e6d45e1509863b1f9e4a037e0
comment:19 Changed 7 years ago by Andrei Savici
One more name correction. Refs #6933
Changeset: 73ed5294f7994ff232c0af40b0fd62100be9195c
comment:20 Changed 7 years ago by Andrei Savici
Remove unused file. Refs #6933
Changeset: 87dfa6c6459a1a3143636e49bc528849aa31b048
comment:21 Changed 7 years ago by Russell Taylor
- Status changed from verifying to closed
It works on linux & mac. On Windows it has zero effect (as Windows redirects clog to cout anyway) but does not harm.
comment:22 Changed 7 years ago by Andrei Savici
Log channel for std::cout. Refs #6933
Changeset: 5f4108211d047da4b4702aa280cae9e2370e52b1
comment:23 Changed 7 years ago by Andrei Savici
UnitTest for StdChannel. Refs #6933
Changeset: 307ddb81a0ac00c413db445a35fc3203b553a87d
comment:24 Changed 7 years ago by Andrei Savici
Renamed StdChannel to StdoutChannel. Refs #6933
Changeset: acda4b09bf812e8e6d45e1509863b1f9e4a037e0
comment:25 Changed 7 years ago by Andrei Savici
One more name correction. Refs #6933
Changeset: 73ed5294f7994ff232c0af40b0fd62100be9195c
comment:26 Changed 7 years ago by Andrei Savici
Remove unused file. Refs #6933
Changeset: 87dfa6c6459a1a3143636e49bc528849aa31b048
comment:27 Changed 7 years ago by Andrei Savici
Log channel for std::cout. Refs #6933
Changeset: 5f4108211d047da4b4702aa280cae9e2370e52b1
comment:28 Changed 7 years ago by Andrei Savici
UnitTest for StdChannel. Refs #6933
Changeset: 307ddb81a0ac00c413db445a35fc3203b553a87d
comment:29 Changed 7 years ago by Andrei Savici
Renamed StdChannel to StdoutChannel. Refs #6933
Changeset: acda4b09bf812e8e6d45e1509863b1f9e4a037e0
comment:30 Changed 7 years ago by Andrei Savici
One more name correction. Refs #6933
Changeset: 73ed5294f7994ff232c0af40b0fd62100be9195c
comment:31 Changed 7 years ago by Andrei Savici
Remove unused file. Refs #6933
Changeset: 87dfa6c6459a1a3143636e49bc528849aa31b048
comment:32 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 7779