salsa  0.4.15
Salsa::Log Class Reference

More...

#include <Log.hh>

Public Member Functions

int add (std::string)
 Add output sink (file, console, zmq) for SPDLOG.
 
void name (char const *pNewName)
 Set name of job (only used for spdlog logger identification)
 
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.
 
int write (char const *)
 Write to logger.
 
std::shared_ptr< spdlog::logger > spd ()
 Get SPDLOG logger handle.
 
int empty ()
 Get info about sinks.
 
void fd (int newFD)
 Set FD of pipe to watch.
 
int fd () const
 Get FD of currently watched pipe.
 

Private Attributes

int mFD = -1
 FD of current pipe.
 
std::string mName = nullptr
 newName (name) of current job
 
std::vector< spdlog::sink_ptr > mSinks
 Sinks for SPDLOG.
 
std::shared_ptr< spdlog::logger > mpTarget = nullptr
 SPDLOG logger handle.
 

Static Private Attributes

static uint64_t msID = 0
 Static Job newName (holds index)
 

Detailed Description


The documentation for this class was generated from the following files: