Lines Matching +full:- +full:- +full:output
4 * SPDX-License-Identifier: Apache-2.0
20 * @brief Log output API
21 * @defgroup log_output Log output API
26 /**@defgroup LOG_OUTPUT_FLAGS Log output formatting flags.
74 * @brief Prototype of the function processing output data.
82 * @note If the log output function cannot process all of the data, it is
106 * @param output Pointer to log_output struct.
112 typedef void (*log_format_func_t)(const struct log_output *output,
123 * @param _func Function for processing output data.
124 * @param _buf Pointer to the output buffer.
125 * @param _size Size of the output buffer.
138 * Function is using provided context with the buffer and output function to
139 * process formatted string and output the data.
141 * @param log_output Pointer to the log output instance.
150 * @param log_output Pointer to the log output instance.
172 /** @brief Process log messages v2 to SYS-T format.
174 * Function is using provided context with the buffer and output function to
175 * process formatted string and output the data in sys-t log output format.
177 * @param log_output Pointer to the log output instance.
188 * @param output Pointer to the log output instance.
191 void log_output_dropped_process(const struct log_output *output, uint32_t cnt);
193 /** @brief Write to the output buffer.
195 * @param outf Output function.
206 len -= processed; in log_output_write()
211 /** @brief Flush output buffer.
213 * @param output Pointer to the log output instance.
215 static inline void log_output_flush(const struct log_output *output) in log_output_flush() argument
217 log_output_write(output->func, output->buf, output->control_block->offset, in log_output_flush()
218 output->control_block->ctx); in log_output_flush()
219 output->control_block->offset = 0; in log_output_flush()
222 /** @brief Function for setting user context passed to the output function.
224 * @param output Pointer to the log output instance.
227 static inline void log_output_ctx_set(const struct log_output *output, in log_output_ctx_set() argument
230 output->control_block->ctx = ctx; in log_output_ctx_set()
235 * @param output Pointer to the log output instance.
238 static inline void log_output_hostname_set(const struct log_output *output, in log_output_hostname_set() argument
241 output->control_block->hostname = hostname; in log_output_hostname_set()