Macros | Functions | Variables
log.c File Reference
#include <assert.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/time.h>
#include <uv.h>
#include "auto/config.h"
#include "nvim/log.h"
#include "nvim/types.h"
#include "nvim/os/os.h"
#include "nvim/os/time.h"




void log_init (void)
void log_lock (void)
void log_unlock (void)
bool logmsg (int log_level, const char *context, const char *func_name, int line_num, bool eol, const char *fmt,...) FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6
 if (log_file==NULL)
 va_start (args, fmt)
 va_end (args)
 if (log_file!=stderr &&log_file!=stdout)
void log_uv_handles (void *loop)
FILE * open_log_file (void)


bool bool ret = false
FILE * log_file = open_log_file()
va_list args
end __pad0__

Macro Definition Documentation


Function Documentation

if ( log_file  = NULL)
if ( log_file!  = stderr && log_file != stdout)
void log_init ( void  )
void log_lock ( void  )
void log_unlock ( void  )
void log_uv_handles ( void loop)
bool logmsg ( int  log_level,
const char *  context,
const char *  func_name,
int  line_num,
bool  eol,
const char *  fmt,

Logs a message to $NVIM_LOG_FILE.

log_levelLog level (see log.h)
contextDescription of a shared context or subsystem
func_nameFunction name, or NULL
line_numSource line number, or -1
eolAppend linefeed "\n"
fmtprintf-style format string
FILE* open_log_file ( void  )

Open the log file for appending.

FILE* decided by log_path_init() or stderr in case of error
va_end ( args  )
static bool va_start ( args  ,
Initial value:
va_list args
va_list args
Definition: log.c:139

Variable Documentation

end __pad0__
va_list args
FILE* log_file = open_log_file()
return ret = false