AlexanderJDupree / Bridges

HTTP/S Server and Library for C++
MIT License
2 stars 0 forks source link

[DISCUSSION] - Investigate Logging Solutions #4

Open AlexanderJDupree opened 4 years ago

AlexanderJDupree commented 4 years ago

Need to explore logging solutions to add to Bridges. Any logging solution will need to support the following features:

Any logging solution should be hidden behind a well defined Bridges logging interface such that the logger can be replaced at any time with minimal effort. Furthermore, it should be possible for the user to provide their own logger to plug into the interface that Bridges will use. Maybe something like:

class Custom_Logger : Sys_Logger
{
// Implement Interface
}

int main()
{

    Server server;
    Custom_Logger my_logger;

   server.set_system_logger(my_logger);
}