Files
ThomasandClaude Sonnet 5 1998bf4273 Strip dead Windows-only code paths, add LTO/march build flags, seed default GM account
Removes now-unreachable #ifdef _WIN32 branches across Common/ and the three
server binaries (all builds are Linux-only), deletes the entirely unused
SEH exception-handling shim and an orphaned vendored MySQL client header.
Enables LTO and -march=x86-64-v2 in Release builds for a small free perf win.

Also seeds a default GM account (gmadmin/changeme) via
database sql files/gm_account.sql so a fresh deploy has something to log
into the web admin panel with, switches the MariaDB data directory from a
Docker named volume to a host bind mount for visibility/backup, and expands
the README with a fuller Docker deployment walkthrough.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-10 15:42:36 +02:00

53 lines
1.2 KiB
C

/*
Open Source Rose Online Team - http://osroseon.to.md/
note: the Server is develop with erose source server + eich source
*/
#ifndef __ROSE_LOGGING_FUNCTIONS__
#define __ROSE_LOGGING_FUNCTIONS__
// Log path
#define LOG_DIRECTORY "/var/log/roseserver/"
#define LOG_LOGIN_SERVER 0x01
#define LOG_CHARACTER_SERVER 0x02
#define LOG_WORLD_SERVER 0x03
#define LOG_SAME_FILE 0x04
// Log File names
extern unsigned char LOG_THISSERVER;
#define LOG_FILENAME_LOGINFILE "loginserver.log"
#define LOG_FILENAME_CHARFILE "charserver.log"
#define LOG_FILENAME_WORLDFILE "worldserver.log"
#define LOG_DEFAULT_FILE "server.log"
#define LOG_FILENAME_ERRORFILE "errors.log"
#define LOG_LOGINPACKETS "loginpacket.log"
#define LOG_CHARPACKETS "charpackets.log"
#define LOG_WORLDPACKETS "worldpackets.log"
#define LOG_DEFAULTPACKETS "packets.log"
// Error Types
enum msg_type {
MSG_NONE,
MSG_STATUS,
MSG_SQL,
MSG_INFO,
MSG_NOTICE,
MSG_WARNING,
MSG_DEBUG,
MSG_ERROR,
MSG_FATALERROR,
MSG_HACK,
MSG_LOAD,
MSG_SDEBUG,
MSG_GMACTION,
MSG_START,
MSG_QUERY,
MSG_QUESTDEBUG
};
// Logging function
void Log( msg_type flag, const char* Format, ... );
#endif