Struct logger

Struct Documentation

struct gkfs::log::logger

Public Functions

logger(const std::string &opts, const std::string &path, bool log_per_process, bool trunc)
~logger()
template<typename ...Args>
inline void log(log_level level, const char *const func, const int lineno, Args&&... args)
inline int log(log_level level, const char *fmt, va_list ap)
void log_syscall(syscall::info info, const long syscall_number, const long args[6], std::optional<long> result = {})

Public Members

int log_fd_
int log_process_id_
log_level log_mask_
const date::time_zone *timezone_

Public Static Functions

template<typename ...Args>
static inline void log_message(std::FILE *fp, Args&&... args)
template<typename ...Args>
static inline void log_message(int fd, Args&&... args)
static inline std::shared_ptr<logger> &global_logger()