Williham Williham Totland
6d2f8cca5c
Adds type information to integer literals.
2020-09-29 13:54:21 +02:00
Joakim Hove
d283f1858f
Add keyword member to KeyworLocation
2020-09-16 14:24:06 +02:00
Joakim Hove
bef5a4c27b
Renamed class Location -> KeywordLocation
2020-09-16 14:06:54 +02:00
Joakim Hove
781ced7294
Use struct Location to record file position for keywords
2019-10-17 23:57:01 +02:00
Atgeirr Flø Rasmussen
752a9e2501
Make StreamLog throw if it fails to open file.
2019-09-06 13:11:54 +02:00
Andreas Lauser
2dc08dd0a7
include config.h in all unit tests
...
in some it was already included, so let's fix that inconsistency The
Right Way (TM).
2018-03-03 13:11:12 +01:00
Arne Morten Kvarving
03ab8fe400
changed: let the build system handle the dynamic boost test defines
2018-02-15 07:21:35 +01:00
Rohith Nair
da654bde90
Modified tests
2017-07-31 15:39:31 +02:00
Atgeirr Flø Rasmussen
0283536ac4
Finish revision of logging.
2016-10-19 15:08:46 +02:00
Liu Ming
8de9921890
file name and line number are in a new line.
2016-06-15 11:20:34 +08:00
Liu Ming
eb654771d9
fix test issue.
2016-06-13 14:28:27 +08:00
Liu Ming
af9b0977f6
add two new constructors.
2016-06-08 15:30:52 +02:00
Liu Ming
46b7b2a114
fix test issues with prefix.
2016-06-08 13:52:40 +02:00
Liu Ming
e89bef777a
fix prefix testing.
2016-06-08 13:40:19 +02:00
Liu Ming
b4c9f82585
Let Note has its own prefix.
2016-06-08 10:55:38 +02:00
Liu Ming
aa51ea67bc
change Prtinfo to Note.
2016-06-08 09:00:24 +02:00
Liu Ming
314a3ffec7
Add a new message type that allows messages only go into print file.
2016-06-07 14:08:33 +02:00
Liu Ming
199324363b
fix color test.
2016-06-06 15:29:09 +02:00
Atgeirr Flø Rasmussen
c4eb8936a8
No longer emit default Ansi color code for black.
...
Using no code for black makes it easier to read output with color in editors etc.
2016-05-25 13:56:33 +02:00
Liu Ming
9aba3ac6b3
fix type error.
2016-05-23 15:04:41 +08:00
Liu Ming
a5afe90659
add simple test for OpmLog::setupSimpleDefaultLog.
2016-05-23 15:01:50 +08:00
Atgeirr Flø Rasmussen
c4c1fe2b30
Rename methods according to code review.
2016-05-18 22:22:10 +02:00
Atgeirr Flø Rasmussen
d2564ff838
Support tagged messages.
...
This changes the design of the LogBackend class and its subclasses,
now the main virtual method is addTaggedMessage(). The former virtual
method addMessage() is now a regular non-virtual method forwarding to
addTaggedMessage().
You can configure message limiting based on tags by passing a MessageLimiter
to the configureMessageLimiter() method, which will then be used by the
includeMessage() method. That method now takes an additional tag argument.
The most user-visible part of this is that there are new overloads of the
static methods OpmLog::warning(), OpmLog::error() etc, that take message
tags. To tie things together the OpmLog and Logger classes have also gotten
new addTaggedMessage() methods, but they should mostly be used through the
convenience methods such as OpmLog::warning().
2016-05-18 13:27:12 +02:00
Atgeirr Flø Rasmussen
6be41d2fcf
Added MessageFormatter.
2016-05-12 10:54:19 +02:00
Atgeirr Flø Rasmussen
474bc50519
Change clearBackends() -> removeAllBackends().
2016-05-12 10:29:48 +02:00
Atgeirr Flø Rasmussen
2c10045195
Use constants for terminal codes.
2016-05-12 10:28:44 +02:00
Atgeirr Flø Rasmussen
492d31f6cc
Added tests for helper functions.
2016-05-09 15:11:34 +02:00
Atgeirr Flø Rasmussen
a6c379db05
Add test exercising coloring feature.
2016-05-09 11:34:08 +02:00
Atgeirr Flø Rasmussen
de87c5a5b5
Make LogBackend pure virtual, also clean and document.
2016-05-09 10:42:28 +02:00
chflo
73ad043006
Moved in logfunctionality from opm-parser
2016-03-17 15:23:18 +01:00