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

standardise log names and potentially fix log folder issue on windows

This commit is contained in:
NotAdam 2018-12-30 22:36:44 +11:00
parent 7ec29b0505
commit d21b0018dc
4 changed files with 6 additions and 8 deletions

View file

@ -734,7 +734,7 @@ void defaultGet( shared_ptr< HttpServer::Response > response, shared_ptr< HttpSe
int main( int argc, char* argv[] )
{
Logger::init( "log/SapphireAPI" );
Logger::init( "log/api" );
Logger::info( "===========================================================" );
Logger::info( "Sapphire API Server " );

View file

@ -25,7 +25,7 @@ namespace Sapphire
void Logger::init( const std::string& logPath )
{
auto pos = logPath.find_last_of( '/' );
auto pos = logPath.find_last_of( fs::path::preferred_separator );
if( pos != std::string::npos )
{

View file

@ -104,7 +104,7 @@ int main( int32_t argc, char* argv[] )
std::string database;
std::string pass;
Logger::init( "log/SapphireDbm" );
Logger::init( "log/dbm" );
std::string sFile;
std::string iFile;

View file

@ -31,12 +31,10 @@ namespace Sapphire
m_configPath( configPath ),
m_numConnections( 0 )
{
m_pConfig = std::shared_ptr< ConfigMgr >( new ConfigMgr );
m_pConfig = std::make_shared< ConfigMgr >();
}
ServerLobby::~ServerLobby( void )
{
}
ServerLobby::~ServerLobby( void ) = default;
LobbySessionPtr ServerLobby::getSession( char* sessionId )
{
@ -50,7 +48,7 @@ namespace Sapphire
void ServerLobby::run( int32_t argc, char* argv[] )
{
Logger::init( "log/SapphireLobby" );
Logger::init( "log/lobby" );
Logger::info( "===========================================================" );
Logger::info( "Sapphire Server Project " );