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
570 B
C++
27 lines
570 B
C++
5 years ago
|
#ifndef LLARP_UTIL_ANDROID_LOGGER_HPP
|
||
|
#define LLARP_UTIL_ANDROID_LOGGER_HPP
|
||
6 years ago
|
|
||
5 years ago
|
#include <util/logging/logstream.hpp>
|
||
|
|
||
6 years ago
|
#include <iostream>
|
||
|
|
||
|
namespace llarp
|
||
|
{
|
||
|
struct AndroidLogStream : public ILogStream
|
||
|
{
|
||
|
void
|
||
5 years ago
|
PreLog(std::stringstream& s, LogLevel lvl, const char* fname, int lineno,
|
||
|
const std::string& nodename) const override;
|
||
6 years ago
|
|
||
|
void
|
||
5 years ago
|
Print(LogLevel lvl, const char* filename, const std::string& msg) override;
|
||
6 years ago
|
|
||
|
void
|
||
5 years ago
|
PostLog(std::stringstream&) const override;
|
||
6 years ago
|
|
||
|
void Tick(llarp_time_t) override;
|
||
6 years ago
|
};
|
||
|
} // namespace llarp
|
||
|
|
||
|
#endif
|