forked from pocoproject/poco
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidLogChannel.h
More file actions
54 lines (39 loc) · 1.05 KB
/
AndroidLogChannel.h
File metadata and controls
54 lines (39 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// AndroidLogChannel.h
//
// $Id: //poco/1.4/Foundation/include/Poco/AndroidLogChannel.h#2 $
//
// Library: Foundation
// Package: Logging
// Module: AndroidLogChannel
//
// Definition of the AndroidLogChannel class.
//
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Foundation_AndroidLogChannel_INCLUDED
#define Foundation_AndroidLogChannel_INCLUDED
#include "Poco/Foundation.h"
#include "Poco/Channel.h"
namespace Poco {
class Foundation_API AndroidLogChannel: public Poco::Channel
/// A channel that writes to the Android log subsystem.
///
/// Only the message's text is written, followed
/// by a newline, using the tag passed on the constructor.
{
public:
AndroidLogChannel(const std::string &tag);
/// Creates the AndroidLogChannel.
void log(const Message& msg);
/// Logs the given message to the channel's stream.
protected:
~AndroidLogChannel();
private:
std::string _tag;
};
} // namespace Poco
#endif // Foundation_AndroidLogChannel_INCLUDED