Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros Groups
Functions
n_log.c File Reference
`#include "n_log.h"`
Include dependency graph for n_log.c:

Go to the source code of this file.

## Functions

void | set_log_level (const int log_level)
| Set the global log level value ( static int LOG_LEVEL ) More...
int | get_log_level ()
| Get the global log level value. More...
int | set_log_file (char *file)
| Set the logging to a file instead of stderr. More...
FILE * | get_log_file ()
| return the current log_file More...
void | _n_log (int level, const char *file, const char *func, int line, const char *format,...)
| Logging function. log( level , const char *format , ... ) is a macro around _log. More...
int | open_safe_logging (TS_LOG **log, char *pathname, char *opt)
| Open a thread-safe logging file. More...
int | write_safe_log (TS_LOG *log, char *pat,...)
| write to a thread-safe logging file More...
int | close_safe_logging (TS_LOG *log)
| close a thread-safe logging file More...