mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
19 lines
600 B
C++
19 lines
600 B
C++
#include "ILogMakePtr.h"
|
|
#include "LogImpl.h"
|
|
#include "LogEasylogging.h"
|
|
#include "LogCapture.h"
|
|
std::shared_ptr<ILog> ILogMakePtr::MakeLogImplPtr()
|
|
{
|
|
std::shared_ptr<ILog> logImpl = std::make_shared<LogImpl>();
|
|
return logImpl;
|
|
}
|
|
std::shared_ptr<ILog> ILogMakePtr::MakeLogEasylogging(const LogSetting *setting)
|
|
{
|
|
std::shared_ptr<ILog> logImpl = std::make_shared<LogEasylogging>(setting);
|
|
return logImpl;
|
|
}
|
|
std::shared_ptr<ILog> ILogMakePtr::MakeLongCapture(const LogSetting *setting)
|
|
{
|
|
std::shared_ptr<ILog> logImpl = std::make_shared<LogCapture>(*setting);
|
|
return logImpl;
|
|
} |