dxFeed Graal Native SDK 3.12.0
Loading...
Searching...
No Matches
dxfg_logging.h
Go to the documentation of this file.
1// Copyright (c) 2025 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
8
9#ifndef DXFG_LOGGING_H
10#define DXFG_LOGGING_H
11
12#ifdef __cplusplus
13extern "C" {
14# include <cstdint>
15#else
16# include <stdint.h>
17#endif
18
19#include "dxfg_common.h"
20
22#include "dxfg_javac.h"
23#include "graal_isolate.h"
24
40
70
82
114 int64_t timestamp, const char *thread_name, int64_t thread_id,
115 const char *logger_name, const char *message,
116 dxfg_exception_t *exception, const char *formatted_message,
117 void *user_data);
118
172DXFG_DEPRECATED("use dxfg_v4_logging_listener_new()")
174 void *user_data, DXFG_OUT dxfg_logging_listener_t **listener);
175
197DXFG_DEPRECATED("use dxfg_v4_logging_set_listener()")
199
216DXFG_DEPRECATED("use dxfg_v4_logging_set_log_level()")
218
236DXFG_DEPRECATED("use dxfg_v4_logging_set_err_level()")
238 // end of Logging
240
241#ifdef __cplusplus
242}
243#endif
244
245#endif // DXFG_LOGGING_H
dxFeed Graal Native SDK Exceptions functions and types declarations
dxFeed Graal Native SDK Common declarations
dxFeed Graal Native SDK Java functions and types declarations
The functions of GraalVM that create, attach to and tear down an isolate, the instance of the SDK in ...
struct __graal_isolatethread_t graal_isolatethread_t
The state of one thread attached to an isolate: the first parameter (thread) of the SDK functions.
Definition graal_isolate.h:60
#define DXFG_OUT
Definition dxfg_common.h:37
int32_t dxfg_logging_set_err_level(graal_isolatethread_t *thread, dxfg_logging_level_t level)
Sets the logging level for the err file.
int32_t dxfg_logging_set_log_level(graal_isolatethread_t *thread, dxfg_logging_level_t level)
Sets the logging level for the listener or the console or the log file.
int32_t dxfg_logging_listener_new(graal_isolatethread_t *thread, dxfg_logging_listener_function_t user_func, void *user_data, DXFG_OUT dxfg_logging_listener_t **listener)
Creates a new logging listener.
void(*) dxfg_logging_listener_function_t(graal_isolatethread_t *thread, dxfg_logging_level_t level, int64_t timestamp, const char *thread_name, int64_t thread_id, const char *logger_name, const char *message, dxfg_exception_t *exception, const char *formatted_message, void *user_data)
The function of a dxfg_logging_listener_t: called for every message that is logged while the listener...
Definition dxfg_logging.h:113
int32_t dxfg_logging_set_listener(graal_isolatethread_t *thread, dxfg_logging_listener_t *listener)
Installs the logging listener.
dxfg_logging_level_t
The logging levels that can be used to control the logging output.
Definition dxfg_logging.h:48
@ DXFG_LOGGING_LEVEL_OFF
Definition dxfg_logging.h:68
@ DXFG_LOGGING_LEVEL_INFO
Definition dxfg_logging.h:59
@ DXFG_LOGGING_LEVEL_WARN
Definition dxfg_logging.h:62
@ DXFG_LOGGING_LEVEL_ERROR
Definition dxfg_logging.h:65
@ DXFG_LOGGING_LEVEL_DEBUG
Definition dxfg_logging.h:56
@ DXFG_LOGGING_LEVEL_TRACE
Definition dxfg_logging.h:53
@ DXFG_LOGGING_LEVEL_ALL
Definition dxfg_logging.h:50
An exception that was thrown by the Java side: the class, the message, the stack trace and the cause.
Definition dxfg_catch_exception.h:83
The handle of a Java object: the reference by which the C code refers to an object that lives in Java...
Definition dxfg_javac.h:60
A handle of a Java InterceptableLoggingListener object, a wrapper of a listener that allows to interc...
Definition dxfg_logging.h:78
dxfg_java_object_handler handler
Definition dxfg_logging.h:80