changed things to include plog
This commit is contained in:
parent
b018a44f10
commit
68a1618743
34 changed files with 2702 additions and 27 deletions
22
include/plog/Initializers/ConsoleInitializer.h
Normal file
22
include/plog/Initializers/ConsoleInitializer.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
#include <plog/Appenders/ColorConsoleAppender.h>
|
||||
#include <plog/Init.h>
|
||||
|
||||
namespace plog
|
||||
{
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// ColorConsoleAppender with any Formatter
|
||||
|
||||
template<class Formatter, int instanceId>
|
||||
PLOG_LINKAGE_HIDDEN inline Logger<instanceId>& init(Severity maxSeverity, OutputStream outputStream)
|
||||
{
|
||||
static ColorConsoleAppender<Formatter> appender(outputStream);
|
||||
return init<instanceId>(maxSeverity, &appender);
|
||||
}
|
||||
|
||||
template<class Formatter>
|
||||
inline Logger<PLOG_DEFAULT_INSTANCE_ID>& init(Severity maxSeverity, OutputStream outputStream)
|
||||
{
|
||||
return init<Formatter, PLOG_DEFAULT_INSTANCE_ID>(maxSeverity, outputStream);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue