source: mainline/uspace/lib/c/include/ipc/logger.h@ d7f7a4a

Last change on this file since d7f7a4a was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[1f2dd20]1/*
[d7f7a4a]2 * SPDX-FileCopyrightText: 2012 Vojtech Horky
[1f2dd20]3 *
[d7f7a4a]4 * SPDX-License-Identifier: BSD-3-Clause
[1f2dd20]5 */
6
7/** @addtogroup libc
8 * @{
9 */
10
[4805495]11#ifndef _LIBC_IPC_LOGGER_H_
12#define _LIBC_IPC_LOGGER_H_
[1f2dd20]13
14#include <ipc/common.h>
15
[669f5cae]16typedef enum {
[bf9ac4e8]17 /** Set (global) default displayed logging level.
18 *
19 * Arguments: new log level.
20 * Returns: error code
21 */
[6e596bd]22 LOGGER_CONTROL_SET_DEFAULT_LEVEL = IPC_FIRST_USER_METHOD,
[bf9ac4e8]23 /** Set displayed level for given log.
24 *
25 * Arguments: new log level.
26 * Returns: error code
27 * Followed by: string with full log name.
28 */
[8e9b2534]29 LOGGER_CONTROL_SET_LOG_LEVEL,
30 /** Set VFS root.
31 *
32 * Returns: error code
33 * Followed by: vfs_pass_handle() request.
[5b0cf63]34 */
[8e9b2534]35 LOGGER_CONTROL_SET_ROOT
[669f5cae]36} logger_control_request_t;
37
[1f2dd20]38typedef enum {
[bf9ac4e8]39 /** Create new log.
40 *
41 * Arguments: parent log id (0 for top-level log).
42 * Returns: error code, log id
43 * Followed by: string with log name.
44 */
[f039dba]45 LOGGER_WRITER_CREATE_LOG = IPC_FIRST_USER_METHOD,
[bf9ac4e8]46 /** Write a message to a given log.
47 *
48 * Arguments: log id, message severity level (log_level_t)
49 * Returns: error code
50 * Followed by: string with the message.
51 */
[cba45af]52 LOGGER_WRITER_MESSAGE
53} logger_writer_request_t;
[1f2dd20]54
55#endif
56
57/** @}
58 */
Note: See TracBrowser for help on using the repository browser.