added a new log domain 'mp_server'
added a new log level 'debug'
This commit is contained in:
parent
af1bdaad79
commit
972675c12a
3 changed files with 8 additions and 6 deletions
|
@ -52,6 +52,8 @@ Version 1.3.9+svn:
|
|||
for all types of anims, you can have multiple such anims using different
|
||||
frame names
|
||||
* miscellaneous and bug fixes:
|
||||
* added a new log domain 'mp_server'
|
||||
* added a new log level 'debug'
|
||||
|
||||
Version 1.3.9:
|
||||
* campaigns:
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
//! @file log.cpp
|
||||
//! Logger for debugging.
|
||||
//! See also wesnoth-commandline-params --logdomains and --log-error="".
|
||||
//! See also wesnoth-commandline-params --logdomains and --log-<level>="domain".
|
||||
|
||||
#include "global.hpp"
|
||||
|
||||
|
@ -54,10 +54,10 @@ namespace lg {
|
|||
|
||||
void timestamps(bool t) { timestamp = t; }
|
||||
|
||||
logger err("error", 0), warn("warning", 1), info("info", 2);
|
||||
logger err("error", 0), warn("warning", 1), info("info", 2), debug("debug", 3);
|
||||
log_domain general("general"), ai("ai"), config("config"), display("display"),
|
||||
engine("engine"), network("network"), filesystem("filesystem"),
|
||||
audio("audio"), paths("paths");
|
||||
engine("engine"), network("network"), mp_server("server"),
|
||||
filesystem("filesystem"), audio("audio"), paths("paths");
|
||||
|
||||
log_domain::log_domain(char const *name) : domain_(log_domains.size())
|
||||
{
|
||||
|
|
|
@ -47,8 +47,8 @@ public:
|
|||
|
||||
void timestamps(bool);
|
||||
|
||||
extern logger err, warn, info;
|
||||
extern log_domain general, ai, config, display, engine, network, filesystem, audio, paths;
|
||||
extern logger err, warn, info, debug;
|
||||
extern log_domain general, ai, config, display, engine, network, mp_server, filesystem, audio, paths;
|
||||
|
||||
class scope_logger
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue