mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
571 B
C++
27 lines
571 B
C++
5 years ago
|
#ifndef LLARP_UTIL_LOGGER_SYSLOG_HPP
|
||
|
#define LLARP_UTIL_LOGGER_SYSLOG_HPP
|
||
5 years ago
|
|
||
|
#include <util/logging/logstream.hpp>
|
||
5 years ago
|
#include <iostream>
|
||
|
|
||
|
namespace llarp
|
||
|
{
|
||
|
struct SysLogStream : public ILogStream
|
||
|
{
|
||
|
void
|
||
5 years ago
|
PreLog(std::stringstream& s, LogLevel lvl, const char* fname, int lineno,
|
||
|
const std::string& nodename) const override;
|
||
5 years ago
|
|
||
|
void
|
||
5 years ago
|
Print(LogLevel lvl, const char* tag, const std::string& msg) override;
|
||
5 years ago
|
|
||
|
void
|
||
|
PostLog(std::stringstream& ss) const override;
|
||
5 years ago
|
|
||
5 years ago
|
void Tick(llarp_time_t) override
|
||
|
{
|
||
|
}
|
||
5 years ago
|
};
|
||
|
} // namespace llarp
|
||
|
#endif
|