NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
mutt_logging.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_MUTT_LOGGING_H
24
#define MUTT_MUTT_LOGGING_H
25
26
#include <stdbool.h>
27
#include <stdint.h>
28
#include <time.h>
29
#include "
mutt/lib.h
"
30
31
struct
ConfigDef
;
32
33
int
log_disp_curses
(time_t stamp,
const
char
*file,
int
line,
const
char
*function,
enum
LogLevel
level,
const
char
*format, ...)
34
__attribute__((__format__(__printf__, 6, 7)));
35
36
void
mutt_log_prep
(
void
);
37
int
mutt_log_start
(
void
);
38
void
mutt_log_stop
(
void
);
39
int
mutt_log_set_level
(enum
LogLevel
level,
bool
verbose);
40
int
mutt_log_set_file
(const
char
*file);
41
42
int
main_log_observer
(struct
NotifyCallback
*nc);
43
int
debug_level_validator
(const struct
ConfigDef
*cdef, intptr_t value, struct
Buffer
*err);
44
45
void
mutt_clear_error
(
void
);
46
47
#endif
/* MUTT_MUTT_LOGGING_H */
debug_level_validator
int debug_level_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "debug_level" config variable - Implements ConfigDef::validator() -.
Definition
mutt_logging.c:271
main_log_observer
int main_log_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t -.
Definition
mutt_logging.c:285
LogLevel
LogLevel
Names for the Logging Levels.
Definition
logging2.h:40
lib.h
Convenience wrapper for the library headers.
mutt_log_set_level
int mutt_log_set_level(enum LogLevel level, bool verbose)
Change the logging level.
Definition
mutt_logging.c:227
mutt_log_set_file
int mutt_log_set_file(const char *file)
Change the logging file.
Definition
mutt_logging.c:196
mutt_log_stop
void mutt_log_stop(void)
Close the log file.
Definition
mutt_logging.c:182
mutt_log_start
int mutt_log_start(void)
Enable file logging.
Definition
mutt_logging.c:249
mutt_log_prep
void mutt_log_prep(void)
Prepare to log.
Definition
mutt_logging.c:172
mutt_clear_error
void mutt_clear_error(void)
Clear the message line (bottom line of screen).
Definition
mutt_logging.c:74
log_disp_curses
int log_disp_curses(time_t stamp, const char *file, int line, const char *function, enum LogLevel level, const char *format,...) __attribute__((__format__(__printf__
Buffer
String manipulation buffer.
Definition
buffer.h:36
ConfigDef
Definition
set.h:65
NotifyCallback
Data passed to a notification function.
Definition
observer.h:34