| 1 | 
 < | 
 #pragma once | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 2 | 
 < | 
 #include <plog/Record.h> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 3 | 
 < | 
 #include <plog/Util.h> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 | 
 < | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 5 | 
 < | 
 namespace plog | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 6 | 
 < | 
 { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 7 | 
 < | 
     class FuncMessageFormatter | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 8 | 
 < | 
     { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 9 | 
 < | 
     public: | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 10 | 
 < | 
         static util::nstring header() | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 11 | 
 < | 
         { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 12 | 
 < | 
             return util::nstring(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 13 | 
 < | 
         } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 14 | 
 < | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 15 | 
 < | 
         static util::nstring format(const Record& record) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 16 | 
 < | 
         { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 17 | 
 < | 
             util::nstringstream ss; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 18 | 
 < | 
             ss << record.getFunc() << PLOG_NSTR("@") << record.getLine() << PLOG_NSTR(": ") << record.getMessage() << PLOG_NSTR("\n"); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 19 | 
 < | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 | 
 < | 
             return ss.str(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 | 
 < | 
         } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 22 | 
 < | 
     }; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 23 | 
 < | 
 } | 
 
 
 
 
 
 
 
 
 
 | 1 | 
 > | 
 #pragma once | 
 
 
 
 
 
 | 2 | 
 > | 
 #include <plog/Record.h> | 
 
 
 
 
 
 | 3 | 
 > | 
 #include <plog/Util.h> | 
 
 
 
 
 
 | 4 | 
 > | 
  | 
 
 
 
 
 
 | 5 | 
 > | 
 namespace plog | 
 
 
 
 
 
 | 6 | 
 > | 
 { | 
 
 
 
 
 
 | 7 | 
 > | 
     class FuncMessageFormatter | 
 
 
 
 
 
 | 8 | 
 > | 
     { | 
 
 
 
 
 
 | 9 | 
 > | 
     public: | 
 
 
 
 
 
 | 10 | 
 > | 
         static util::nstring header() | 
 
 
 
 
 
 | 11 | 
 > | 
         { | 
 
 
 
 
 
 | 12 | 
 > | 
             return util::nstring(); | 
 
 
 
 
 
 | 13 | 
 > | 
         } | 
 
 
 
 
 
 | 14 | 
 > | 
  | 
 
 
 
 
 
 | 15 | 
 > | 
         static util::nstring format(const Record& record) | 
 
 
 
 
 
 | 16 | 
 > | 
         { | 
 
 
 
 
 
 | 17 | 
 > | 
             util::nstringstream ss; | 
 
 
 
 
 
 | 18 | 
 > | 
             ss << record.getFunc() << PLOG_NSTR("@") << record.getLine() << PLOG_NSTR(": ") << record.getMessage() << PLOG_NSTR("\n"); | 
 
 
 
 
 
 | 19 | 
 > | 
  | 
 
 
 
 
 
 | 20 | 
 > | 
             return ss.str(); | 
 
 
 
 
 
 | 21 | 
 > | 
         } | 
 
 
 
 
 
 | 22 | 
 > | 
     }; | 
 
 
 
 
 
 | 23 | 
 > | 
 } |