common/logging: Create a new backed for android's logcat

logging
This commit is contained in:
SachinVin 2020-05-09 19:05:12 +05:30
parent 84844e1b24
commit 9ad6bc29b5
5 changed files with 55 additions and 11 deletions

View file

@ -81,6 +81,21 @@ public:
void Write(const Entry& entry) override;
};
/**
* Backend that writes to the Android logcat
*/
class LogcatBackend : public Backend {
public:
static const char* Name() {
return "logcat";
}
const char* GetName() const override {
return Name();
}
void Write(const Entry& entry) override;
};
/**
* Backend that writes to a file passed into the constructor
*/