common/logging: Create a new backed for android's logcat
logging
This commit is contained in:
parent
84844e1b24
commit
9ad6bc29b5
5 changed files with 55 additions and 11 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue