mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 20:41:33 +00:00
linux compile fix
This commit is contained in:
parent
ce0a5cf7b8
commit
b1fbcc51e0
@ -25,11 +25,12 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <direct.h>
|
|
||||||
|
|
||||||
std::ofstream process_log;
|
std::ofstream process_log;
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
|
#include <direct.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <dos.h>
|
#include <dos.h>
|
||||||
@ -90,8 +91,16 @@ void EQEmuLogSys::StartZoneLogs(const std::string log_name)
|
|||||||
process_log.open(StringFormat("logs/zone/%s.txt", log_name.c_str()), std::ios_base::app | std::ios_base::out);
|
process_log.open(StringFormat("logs/zone/%s.txt", log_name.c_str()), std::ios_base::app | std::ios_base::out);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EQEmuLogSys::LogDebugType(DebugLevel debug_level, uint16 log_type, std::string message, ...){
|
void EQEmuLogSys::LogDebugType(DebugLevel debug_level, uint16 log_type, std::string message, ...)
|
||||||
|
{
|
||||||
|
if (RuleI(Logging, DebugLogLevel) < debug_level){ return; }
|
||||||
|
|
||||||
|
va_list args;
|
||||||
|
va_start(args, message);
|
||||||
|
std::string output_message = vStringFormat(message.c_str(), args);
|
||||||
|
va_end(args);
|
||||||
|
|
||||||
|
EQEmuLogSys::Log(EQEmuLogSys::LogType::Debug, output_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user