Removed ACE_HAS_BSTRING, not used
[ACE_TAO.git] / ACE / ace / Log_Msg_Android_Logcat.h
blob8eb9c2662725a0f844e97d5a9d639485b557c562
1 /**
2 * @file Log_Msg_Android_Logcat.h
4 * @author Frederick Hornsey <hornseyf@objectcomputing.com>
5 */
7 #ifndef ACE_LOG_MSG_ANDROID_LOGCAT_H
8 #define ACE_LOG_MSG_ANDROID_LOGCAT_H
10 #include /**/ "ace/pre.h"
12 #include /**/ "ace/config-all.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #ifdef ACE_ANDROID
20 #include "ace/Log_Msg_Backend.h"
21 #include "ace/Basic_Types.h"
23 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
25 /**
26 * @class ACE_Log_Msg_Android_Logcat
28 * @brief Implements an ACE_Log_Msg_Backend that logs messages to Android's
29 * logging system, called Logcat. On Android this is the default output for ACE
30 * and the only convenient way of logging.
32 * Reference to the Logging part of Android's NDK API can be found here:
33 * https://developer.android.com/ndk/reference/group/logging
35 class ACE_Export ACE_Log_Msg_Android_Logcat : public ACE_Log_Msg_Backend
37 public:
38 ACE_Log_Msg_Android_Logcat ();
39 virtual ~ACE_Log_Msg_Android_Logcat ();
41 /// Initialize the event logging facility. NOP in this class.
42 virtual int open (const ACE_TCHAR *);
44 /// Reset the backend. NOP in this class.
45 virtual int reset ();
47 /// Close the backend completely. NOP in this class.
48 virtual int close ();
50 /// This is called when we want to log a message.
51 virtual ssize_t log (ACE_Log_Record &log_record);
54 ACE_END_VERSIONED_NAMESPACE_DECL
56 #endif
58 #include /**/ "ace/post.h"
59 #endif /* ACE_LOG_MSG_ANDROID_LOGCAT */