Replies: 6 comments 18 replies
-
syslog_sink_mt is thread-safe. |
Beta Was this translation helpful? Give feedback.
-
hi.. i am trying to verify this blow code , in my case mostly i actually need to use syslog sink with multiple loggers , but since i don't had syslog installed i am testing by having stdout sink . class SingletonPimplLogger::LoggerImpl
private: SingletonPimplLogger& SingletonPimplLogger::getInstance() SingletonPimplLogger::SingletonPimplLogger() SingletonPimplLogger::~SingletonPimplLogger() = default; void SingletonPimplLogger::createLogger(const std::string& loggerName, const std::vector<std::shared_ptrspdlog::sinks::sink>& sinks) void SingletonPimplLogger::logInfo(const std::string& loggerName, const std::string& message) void SingletonPimplLogger::logError(const std::string& loggerName, const std::string& message) ========= int main()
} |
Beta Was this translation helpful? Give feedback.
-
one q: target = std::make_sharedspdlog::logger(logger_name, sink.begin(), sink.end()); and also can you please let me know use of the logger name , and |
Beta Was this translation helpful? Give feedback.
-
wanted to know how efficiently i can use this logger! |
Beta Was this translation helpful? Give feedback.
-
hi , can some help/ know how to make that work.. |
Beta Was this translation helpful? Give feedback.
-
in this case i am trying attach ringbuffer_sink to the existing stdoutlogger and get the messages. but with below code i see ringbuffer is availble and messages are logging to stdout , but ringbuffer sink dont have any messages. can you let me know where this going wrong void startRingbuff(){
} |
Beta Was this translation helpful? Give feedback.
-
hi all
i am trying to use spd log to write to syslog .
one question i have is .. is there any difference if i try creating "multiple syslog sinks and use muliple loggers " or "one syslog sink and use muliple loggers ".
i am trying to implement this in asynchronous multi threaded environment. so that i can avoid having multiple reference of sinks
thanks
Beta Was this translation helpful? Give feedback.
All reactions