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

Last change on this file since 9bfa8c8 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
Line 
1/*
2 * SPDX-FileCopyrightText: 2012 Vojtech Horky
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libc
8 * @{
9 */
10
11#ifndef _LIBC_IPC_LOGGER_H_
12#define _LIBC_IPC_LOGGER_H_
13
14#include <ipc/common.h>
15
16typedef enum {
17 /** Set (global) default displayed logging level.
18 *
19 * Arguments: new log level.
20 * Returns: error code
21 */
22 LOGGER_CONTROL_SET_DEFAULT_LEVEL = IPC_FIRST_USER_METHOD,
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 */
29 LOGGER_CONTROL_SET_LOG_LEVEL,
30 /** Set VFS root.
31 *
32 * Returns: error code
33 * Followed by: vfs_pass_handle() request.
34 */
35 LOGGER_CONTROL_SET_ROOT
36} logger_control_request_t;
37
38typedef enum {
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 */
45 LOGGER_WRITER_CREATE_LOG = IPC_FIRST_USER_METHOD,
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 */
52 LOGGER_WRITER_MESSAGE
53} logger_writer_request_t;
54
55#endif
56
57/** @}
58 */
Note: See TracBrowser for help on using the repository browser.