Arne Morten Kvarving
2acd2db5d0
changed: rename Parser to opmparser for consistency
2015-05-26 13:53:54 +02:00
Arne Morten Kvarving
9e96127705
change how tests are added in the build system
...
- use a opm-macro to reduce code duplication
- add a 'test-suite' target which builds tests. for use if BUILD_TESTING
is 0.
- add a 'check' target which builds tests, then executes them
2015-05-26 13:07:44 +02:00
Joakim Hove
45e13a1b40
Minor changes to silence some warnings.
2015-04-15 22:59:58 +02:00
Atgeirr Flø Rasmussen
bfea9e7406
Suppress warning in Logger::addMessageType().
2015-03-25 08:52:59 +01:00
Atgeirr Flø Rasmussen
61f9855381
Suppress an unused argument warning.
2015-03-25 08:48:07 +01:00
Joakim Hove
7afa65a230
Fixed bug with iterator modification
2015-03-09 12:38:16 +01:00
Joakim Hove
cb4e3571e3
Updated the default messagetypes - inspired by ECLIPSE
2015-03-04 22:14:33 +01:00
Joakim Hove
dc992bbc53
Added methods to remove a logger backend.
2015-03-04 22:14:32 +01:00
Joakim Hove
3562ac4344
Added TimerLog example
2015-03-04 22:14:32 +01:00
Joakim Hove
130879f01a
Changed OpmLog to be more careful to create logger.
2015-03-04 22:14:32 +01:00
Joakim Hove
9fb229ccd7
Replaced references to logger with OpmLog::addMessage()
2015-03-04 22:14:31 +01:00
Joakim Hove
f3419e8e61
Removed methods from CounterLog:
...
- Methods to get the number of Warning, Errors and Notes.
- Methods to get the file/line/description content of a message.
2015-03-04 22:12:53 +01:00
Joakim Hove
3a60605d99
Removed most of the functionality from CounterLog
2015-03-04 22:12:53 +01:00
Joakim Hove
33034b0319
Logger will throw if the messageType is not enabled.
2015-03-04 22:12:52 +01:00
Joakim Hove
ce5960bbcd
Added new CounterLog constructor
2015-03-04 22:12:52 +01:00
Joakim Hove
25bff6480d
Renamed MessageCounter -> CounterLog
2015-03-04 22:12:52 +01:00
Joakim Hove
aa604aad9e
Add ostream.flush() call in the StreamLog
2015-03-04 22:10:02 +01:00
Joakim Hove
44d4b92f68
Renamed AllMessageTypes -> DefaultMessageTypes
...
A newly created Logger instance should have all these message types
enabled.
2015-03-04 22:10:01 +01:00
Joakim Hove
46a98747f9
Added messageType methods to OpmLog
2015-03-04 22:10:00 +01:00
Joakim Hove
139330ec88
Added backend manipulation through OpmLog frontend.
2015-03-04 22:09:59 +01:00
Joakim Hove
5d3daabaef
Added Logger::getBackend<T>() method
2015-03-04 22:09:58 +01:00
Joakim Hove
e6c6209991
Added StreamLog backend.
2015-03-04 22:09:57 +01:00
Joakim Hove
2c2da004b9
WIP: Added simple backend map in Logger
2015-03-04 22:09:57 +01:00
Joakim Hove
f52b5397f7
Using LogUtil to format message.
2015-03-04 22:09:56 +01:00
Joakim Hove
245b91d0c2
Introduced LogUtil file + Logger class
...
- The new LogUtil.cpp / LogUtil.hpp files contain the enum definitions
for MessageType and formatting functions.
- The Logger class is meant to be the instance which is held by the
static OpmLog singleton class.
2015-03-04 22:09:55 +01:00
Joakim Hove
930d70744d
Added thin abstract class LogBackend
2015-03-04 22:09:55 +01:00
Joakim Hove
d3277543ec
Renamed existing Logger -> MessageCounter
2015-03-04 22:09:54 +01:00
Joakim Hove
738fb0c05c
Moved MessageType enum to OpmLog
2015-03-04 22:07:04 +01:00
Joakim Hove
e2a11f620c
Added simple static format functions to OpmLog
2015-03-04 22:07:03 +01:00
Joakim Hove
e18123b7f3
Merged Singleton Logger with existing logger.
2015-03-04 22:07:03 +01:00