skullc-peripherals/Utility/Src/utility_logging.cpp
Erki d945e7a799
Some checks failed
continuous-integration/drone/push Build is failing
Add basic logging framework with a global logger
2021-03-20 23:22:17 +02:00

26 lines
289 B
C++

/*
* utility_logging.cpp
*
* Created on: Mar 20, 2021
* Author: erki
*/
#include "utility_logging.hpp"
namespace Utility
{
ILogger* skullc_logger = nullptr;
void setLogger(ILogger* log)
{
skullc_logger = log;
}
void setLogger(ILogger& log)
{
skullc_logger = &log;
}
}