Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Log_Msg_Android_Logcat.h
blob21ed5cfb7d784530a6ae7f425f39aeb4be98e892
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 () = default;
39 ~ACE_Log_Msg_Android_Logcat () override;
41 /// Initialize the event logging facility. NOP in this class.
42 int open (const ACE_TCHAR *) override;
44 /// Reset the backend. NOP in this class.
45 int reset () override;
47 /// Close the backend completely. NOP in this class.
48 int close () override;
50 /// This is called when we want to log a message.
51 ssize_t log (ACE_Log_Record &log_record) override;
54 ACE_END_VERSIONED_NAMESPACE_DECL
56 #endif
58 #include /**/ "ace/post.h"
59 #endif /* ACE_LOG_MSG_ANDROID_LOGCAT */