Ignacio R. Morelle
57ae45387a
New Year copyright update
2015-01-01 19:07:35 -03:00
Chris Beck
6102ff4819
add comments about using iomanip with logger
2014-12-07 22:46:55 -05:00
Chris Beck
1e16b9a7e1
refactor strict logging
...
Don't throw an exception, just remember that we broke strict mode,
and cause the unit test to fail if that happens.
2014-05-20 13:39:25 -04:00
Chris Beck
f7ce1845f3
add "strict" logging option, to treat e.g. wml warnings as errors
...
When the game is run using e.g. "--log-strict=warning", then
writing anything to a log channel of severity warning or higher
will result in a game::game_error exception being thrown.
This will only happen the first time that such a write is
attempted, subsequent attempts to get the logging object will
pass without exception and such messages will be reported.
2014-05-14 21:39:20 -04:00
Alexander van Gessel
45a4334a2f
Magic number reduction
2014-05-03 02:40:46 +02:00
gfgtdf
86b68cf8d6
add precise_timestamps setter
2014-04-27 20:01:48 +02:00
Ignacio R. Morelle
a4f47a63c7
New Year copyright update
2014-01-01 02:08:52 -03:00
JaMiT
0efede1295
Fix run-on sentence in the preferred format for deprecation messages.
2013-06-23 19:13:57 -05:00
Eric S. Raymond
043c4f9fd3
Remove $Id$ cookies.
2013-03-26 21:41:37 -04:00
Alexander van Gessel
05e6afc22b
Add remaining time to ban information strings
2013-03-17 03:52:59 +01:00
Mark de Wever
43b71f2ff0
New year copyright update.
2013-01-01 09:22:03 +00:00
Mark de Wever
4f6b1f5391
Use NULL instead of 0.
2012-04-01 08:23:04 +00:00
Ignacio R. Morelle
6ca69b2df5
New year copyright update
2012-01-07 02:35:17 +00:00
Mark de Wever
3bdec13280
Add a helper class to redirect the logger output.
...
This is added for some unit tests that will check the output of the logs
for validation. (The unit tests will be committed once their classes are
finished.)
2011-03-02 21:40:59 +00:00
Mark de Wever
ecbabea838
New year copyright update.
2011-01-01 15:57:50 +00:00
Alexander van Gessel
f2d8fc6b39
include sstream from log.hpp, as it is needed to use lg::wml_error
2010-09-24 02:46:20 +01:00
Guillaume Melquiond
eeb047de55
Fixed file headers so that they match the content of the COPYING file.
2010-09-01 21:12:38 +00:00
Mark de Wever
a99c78e0d8
Update doxygen comment.
...
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Ali El Gariani
3abf2a830a
--logdomains became a bit unusable to find the one you want.
...
so now display one domain by line and allow to specify a filter
example: "--logdomains gui" will shows all gui/.. domains
2010-07-07 16:04:19 +00:00
Mark de Wever
92f5f92ce5
New year copyright update.
2010-01-01 13:16:49 +00:00
Gunter Labes
b2b8b8e3d3
moved the __func__ definition to log.hpp...
...
...since it is usually used when logging
2009-09-13 00:52:16 +00:00
Guillaume Melquiond
f186d8b685
Converted documentation to doxygen or fixed it.
2009-04-26 17:41:15 +00:00
Guillaume Melquiond
789736ac91
Removed specialized domains from log.hpp,
...
...so that adding a new domain no longer forces to recompile the whole
game.
2009-04-24 23:18:31 +00:00
Iurii Chernyi
281b2076e4
new log category ai_testing
2009-04-24 18:38:18 +00:00
Jérémy Rosen
b66dffb955
put stat upload logs in a separate logdomain, patch by corn
2009-04-17 13:02:02 +00:00
Iurii Chernyi
181950e10b
AI Refactoring: added a new log category for ai_actions.
2009-04-11 21:44:15 +00:00
Mark de Wever
92760d4fff
Remove an unneeded header.
...
Also added comment iostream is needed so it won't get removed again in
the future.
2009-04-11 15:55:06 +00:00
Ignacio R. Morelle
52aefa9585
Revert part of 2009-04-10T19:20:49Z!koraq@xs4all.nl,
...
...namely do not remove #include <iostream> from log.hpp. We *need it*
unless we want to manually include it on every place log.hpp is
included and its facilities used.
2009-04-11 02:28:03 +00:00
Mark de Wever
57ca85fb76
Remove unneeded includes.
2009-04-10 19:20:49 +00:00
Iurii Chernyi
4a3516aafe
added basic history and hot-redeployment capabilities to in-game console.
...
changed AI lifecycle management to use the new ai_manager
implementation
changed AI configuration parsing to use the new ai_configuration
implementation
2009-03-30 20:08:28 +00:00
Guillaume Melquiond
c95b23cd1f
Added a "lua" log domain.
2009-03-24 20:01:07 +00:00
Ignacio R. Morelle
0595636cf1
Use the lg::wml logdomain instead of lg::events for [wml_message] stuff...
...
...as suggested by Soliton.
2009-01-12 00:14:25 +00:00
Ignacio R. Morelle
68d4a1cee7
Rename the lg::notifs log domain to lg::events .
2009-01-11 22:57:41 +00:00
Mark de Wever
a5d1d2e969
New year copyright update.
2009-01-01 10:27:41 +00:00
Mark de Wever
3e2b618839
Make scope_logger hold a copy of the string.
...
The previous version held a pointer to the string used to initialize the
object. This failed when the string used to create the object is a
temporary object. It works for the constructor but in the destructor the
pointer might be invalid.
2008-09-28 21:11:13 +00:00
Mark de Wever
f9a15e6f0e
Move all log macros for the widget library to log.hpp.
2008-09-28 14:46:18 +00:00
Mark de Wever
36fe11aa88
Add the gui_layout log domain.
2008-09-28 14:46:11 +00:00
Pauli Nieminen
57ca8308ad
[[AI tuning]]
...
* Merged formula ai to default ai (formula makes moves first and
handles recruiting if scenario includes formulas)
* Added AI configuration paramter for forced recruitment
* Added village extra penalty for leader village grapping if enemy can
attack that village
* Fixed some other small issues with ai code
* Added recruiting formula to loyalists faction for testing
2008-09-16 18:14:54 +00:00
Ignacio R. Morelle
9125cc0563
Fix a ehm... uhm... 'Doxygen regression' from 2008-09-14T01:00:22Z!shadowm@wesnoth.org
2008-09-14 02:19:06 +00:00
Ignacio R. Morelle
7a5518f213
Doxygen comment tweaking
2008-09-14 01:00:22 +00:00
Mark de Wever
230c14c625
Update doxygen comment style.
2008-09-13 17:13:43 +00:00
Thomas Baumhauer
b4c01744fa
Adding user_handler log domain.
2008-09-12 18:17:52 +00:00
Pauli Nieminen
0d75346ca0
Added cache log domain
2008-08-30 12:44:44 +00:00
Mark de Wever
d438f80f12
Added a MSVC 9 projectfile and some fixes for that compiler (patch #1093 ).
2008-08-17 08:07:54 +00:00
Jörg Hinrichs
1297a69572
This fixes a bug reported by ShadowMaster,
...
...which made Wesnoth process the [advancefrom] WML tag wrong. It
originated from missing information caused by lazy loading of unit
types.
It might also very well fix bug #11731 (Wesnoth segfaults on AI turn
when any unit has incorrect advanceto=), at least those cases, where
it is not caused by wrong unit WML.
2008-07-30 18:19:40 +00:00
Mark de Wever
767a7dbe89
Initialize all members.
2008-06-22 08:39:00 +00:00
Tomasz Śniatowski
e87cd387a8
Add "editor" log domain
2008-05-26 14:43:17 +01:00
Mark de Wever
976269b5ce
Make sure #include "log.hpp" can be used...
...
...without the need to include more items.
Cleaned a duplicate in log.cpp.
2008-04-12 09:15:53 +00:00
Mark de Wever
2563ef1135
Fix an aliasing problem with indent.
...
The scoped logger now also indents the entire line instead if the word BEGIN.
2008-04-09 15:16:15 +00:00
Mark de Wever
ec2d355022
Added the option to indent the output for the logging,
...
...this is handy when using log_scope/log_scope2.
2008-04-08 20:44:38 +00:00