1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 22:57:45 +00:00

Standardize log location

Updated REST and Zone server to use log folder.
This commit is contained in:
Zynjec 2017-08-08 18:35:31 -04:00
parent 5ccba7ce61
commit 7bc9873ed4
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ void print_request_info( shared_ptr<HttpServer::Request> request ) {
int main() int main()
{ {
g_log.setLogPath( "SapphireAPI" ); g_log.setLogPath( "log\\SapphireAPI" );
g_log.init(); g_log.init();
g_log.info( "===========================================================" ); g_log.info( "===========================================================" );

View file

@ -186,7 +186,7 @@ bool Core::ServerZone::loadSettings( int argc, char* argv[] )
void Core::ServerZone::run( int argc, char* argv[] ) void Core::ServerZone::run( int argc, char* argv[] )
{ {
// TODO: add more error checks for the entire initialisation // TODO: add more error checks for the entire initialisation
g_log.setLogPath( "SapphireZone_" + std::to_string( m_serverId ) + "_" ); g_log.setLogPath( "log\\SapphireZone_" + std::to_string( m_serverId ) + "_" );
g_log.init(); g_log.init();
g_log.info( "===========================================================" ); g_log.info( "===========================================================" );