3 #include <spdlog/sinks/basic_file_sink.h> 4 #include <spdlog/sinks/stdout_sinks.h> 25 void name(
char const * pNewName) {
mName = pNewName; }
35 int write(
char const *);
42 void fd(
int newFD) {
mFD = newFD; }
50 std::vector<spdlog::sink_ptr>
mSinks;
51 std::shared_ptr<spdlog::logger>
mpTarget =
nullptr;
std::shared_ptr< spdlog::logger > spd()
Get SPDLOG logger handle.
int mFD
FD of current pipe.
static uint64_t msID
Static Job newName (holds index)
void fd(int newFD)
Set FD of pipe to watch.
int write(char const *)
Write to logger.
std::string mName
newName (name) of current job
int fd() const
Get FD of currently watched pipe.
void name(char const *pNewName)
Set name of job (only used for spdlog logger identification)
std::vector< spdlog::sink_ptr > mSinks
Sinks for SPDLOG.
void name(std::string newName)
Set name of job (only used for spdlog logger identification)
std::string name() const
Get name of job (only used for spdlog logger identification)
int create()
Create SPDLOG loger.
std::shared_ptr< spdlog::logger > mpTarget
SPDLOG logger handle.
int empty()
Get info about sinks.
int add(std::string)
Add output sink (file, console, zmq) for SPDLOG.