| // Copyright (C) 2017 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| #ifndef _LIBS_LOG_TRANSPORT_H |
| #define _LIBS_LOG_TRANSPORT_H |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| /* |
| * Logging transports, bit mask to select features. Function returns selection. |
| */ |
| /* clang-format off */ |
| #define LOGGER_DEFAULT 0x00 |
| #define LOGGER_LOGD 0x01 |
| #define LOGGER_KERNEL 0x02 /* Reserved/Deprecated */ |
| #define LOGGER_NULL 0x04 /* Does not release resources of other selections */ |
| #define LOGGER_LOCAL 0x08 /* logs sent to local memory */ |
| #define LOGGER_STDERR 0x10 /* logs sent to stderr */ |
| /* clang-format on */ |
| |
| /* Both return the selected transport flag mask, or negative errno */ |
| int android_set_log_transport(int transport_flag); |
| int android_get_log_transport(); |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #endif /* _LIBS_LOG_TRANSPORT_H */ |