1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2016 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef RY_ADMIN_LOG_H
20 #define RY_ADMIN_LOG_H
22 #include "nel/misc/log.h"
23 #include "nel/misc/debug.h"
24 #include "nel/misc/variable.h"
28 * separate log system for admin commands. Logs are in egs_mission.log. use ADMINLOG to log in this file
36 void init(const std::string
& logFile
);
39 ///\return the name of the log file
40 inline const std::string
& getLogFile(){return _LogFile
;}
42 void display(const char *format
, ...);
44 /// the NEL log used for in the mission log
47 /// the file displayer used to log the mission information
48 NLMISC::CFileDisplayer _Fd
;
54 extern CAdminLog AdminLog
;
56 /// macro used to log missions script error
57 #define ADMINLOG AdminLog.display
59 #endif // RY_ADMIN_LOG_H
61 /* End of admin_log.h */