#include <cstdarg>
#include <cstdio>
#include <cstring>
Go to the source code of this file.
|
typedef void(* | llama_utils::LogFunction) (const char *file, const char *function, int line, const char *text,...) |
| Type definition for a logging function.
|
|
◆ LLAMA_LOG_DEBUG
#define LLAMA_LOG_DEBUG |
( |
| text, |
|
|
| ... ) |
Value:
__FUNCTION__, __LINE__, text, ##__VA_ARGS__)
@ DEBUG
Definition logs.hpp:67
LogLevel log_level
The current log level for the application.
Definition logs.cpp:119
const char * extract_filename(const char *path)
Extracts the filename from a given file path.
Definition logs.hpp:87
◆ LLAMA_LOG_ERROR
#define LLAMA_LOG_ERROR |
( |
| text, |
|
|
| ... ) |
Value:
__FUNCTION__, __LINE__, text, ##__VA_ARGS__)
@ ERROR
Log level for error messages. Only critical errors should be logged.
Definition logs.hpp:58
◆ LLAMA_LOG_INFO
#define LLAMA_LOG_INFO |
( |
| text, |
|
|
| ... ) |
Value:
__LINE__, text, ##__VA_ARGS__)
@ INFO
Definition logs.hpp:64
◆ LLAMA_LOG_WARN
#define LLAMA_LOG_WARN |
( |
| text, |
|
|
| ... ) |
Value:
__LINE__, text, ##__VA_ARGS__)
@ WARN
Definition logs.hpp:61