—
More...
#include <Log.hh>
|
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.
|
|
|
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 uint64_t | msID = 0 |
| Static Job newName (holds index)
|
|
◆ Log()
Definition at line 8 of file Log.cc.
◆ ~Log()
◆ add()
int Salsa::Log::add |
( |
std::string | where | ) |
|
◆ create()
int Salsa::Log::create |
( |
| ) |
|
◆ empty()
int Salsa::Log::empty |
( |
| ) |
|
|
inline |
Get info about sinks.
Definition at line 41 of file Log.hh.
References mSinks.
◆ fd() [1/2]
int Salsa::Log::fd |
( |
| ) |
const |
|
inline |
Get FD of currently watched pipe.
Definition at line 46 of file Log.hh.
References mFD.
◆ fd() [2/2]
void Salsa::Log::fd |
( |
int | newFD | ) |
|
|
inline |
◆ name() [1/3]
std::string Salsa::Log::name |
( |
| ) |
const |
|
inline |
Get name of job (only used for spdlog logger identification)
Definition at line 32 of file Log.hh.
References mName.
◆ name() [2/3]
void Salsa::Log::name |
( |
char const * | pNewName | ) |
|
|
inline |
Set name of job (only used for spdlog logger identification)
Definition at line 27 of file Log.hh.
References mName.
◆ name() [3/3]
void Salsa::Log::name |
( |
std::string | newName | ) |
|
|
inline |
Set name of job (only used for spdlog logger identification)
Definition at line 29 of file Log.hh.
References mName.
◆ spd()
std::shared_ptr< spdlog::logger > Salsa::Log::spd |
( |
| ) |
|
|
inline |
◆ write()
int Salsa::Log::write |
( |
char const * | pContent | ) |
|
◆ mFD
FD of current pipe.
Definition at line 49 of file Log.hh.
Referenced by fd(), and fd().
◆ mName
std::string Salsa::Log::mName = nullptr |
|
private |
◆ mpTarget
std::shared_ptr<spdlog::logger> Salsa::Log::mpTarget = nullptr |
|
private |
◆ msID
uint64_t Salsa::Log::msID = 0 |
|
staticprivate |
◆ mSinks
std::vector<spdlog::sink_ptr> Salsa::Log::mSinks |
|
private |
The documentation for this class was generated from the following files: