logFd_interface.h
Go to the documentation of this file.
17 * This API provides a method for logging messages coming from a file descriptor such as a pipe or42 //--------------------------------------------------------------------------------------------------46 //--------------------------------------------------------------------------------------------------49 //--------------------------------------------------------------------------------------------------52 * Connect the current client thread to the service providing this API. Block until the service is56 * called before any other functions in this API. Normally, ConnectService is automatically called61 //--------------------------------------------------------------------------------------------------67 //--------------------------------------------------------------------------------------------------70 * Try to connect the current client thread to the service providing this API. Return with an error74 * called before any other functions in this API. Normally, ConnectService is automatically called83 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).86 //--------------------------------------------------------------------------------------------------92 //--------------------------------------------------------------------------------------------------96 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants99 //--------------------------------------------------------------------------------------------------106 //--------------------------------------------------------------------------------------------------112 * longer a connection to the service, and the functions in this API can't be used. For details, see117 //--------------------------------------------------------------------------------------------------124 //--------------------------------------------------------------------------------------------------126 * Registers an application process' standard error for logging. Messages from this file descriptor133 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------148 * Registers an application process' standard out for logging. Messages from this file descriptor155 //--------------------------------------------------------------------------------------------------void logFd_ConnectService(void)le_result_t logFd_TryConnectService(void)void logFd_SetServerDisconnectHandler(logFd_DisconnectHandler_t disconnectHandler, void *contextPtr)void logFd_StdErr(int fd, const char *LE_NONNULL appName, const char *LE_NONNULL procName, int32_t pid)void logFd_StdOut(int fd, const char *LE_NONNULL appName, const char *LE_NONNULL procName, int32_t pid)void logFd_DisconnectService(void)