1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
|
|
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
|
|
7 | * |
5 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
6 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
7 | * the terms of the Affero GNU General Public License as published by the |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
8 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * option) any later version. |
9 | * option) any later version. |
… | |
… | |
170 | logsync = 0; |
168 | logsync = 0; |
171 | } |
169 | } |
172 | } logthread; |
170 | } logthread; |
173 | |
171 | |
174 | void |
172 | void |
175 | LOG (int flags, const char *format, ...) |
173 | LOG (int flags, const_utf8_string format, ...) |
176 | { |
174 | { |
177 | int level = flags & 15; |
175 | int level = flags & 15; |
178 | |
176 | |
179 | if (level > settings.debug) |
177 | if (level > settings.debug) |
180 | return; |
178 | return; |