changed things to include plog
This commit is contained in:
parent
b018a44f10
commit
68a1618743
34 changed files with 2702 additions and 27 deletions
23
include/plog/Formatters/FuncMessageFormatter.h
Normal file
23
include/plog/Formatters/FuncMessageFormatter.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
#include <plog/Record.h>
|
||||
#include <plog/Util.h>
|
||||
|
||||
namespace plog
|
||||
{
|
||||
class FuncMessageFormatter
|
||||
{
|
||||
public:
|
||||
static util::nstring header()
|
||||
{
|
||||
return util::nstring();
|
||||
}
|
||||
|
||||
static util::nstring format(const Record& record)
|
||||
{
|
||||
util::nostringstream ss;
|
||||
ss << record.getFunc() << PLOG_NSTR("@") << record.getLine() << PLOG_NSTR(": ") << record.getMessage() << PLOG_NSTR("\n");
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue