Tor  0.4.7.0-alpha-dev
log Directory Reference

lib/log: Log messages to files, syslogs, etc.

More...

Files

file  escape.c [code]
 Escape untrusted strings before sending them to the log.
 
file  escape.h [code]
 Header for escape.c.
 
file  log.c [code]
 Functions to send messages to log files or the console.
 
file  log.h [code]
 Headers for log.c.
 
file  log_sys.c [code]
 Setup and tear down the logging module.
 
file  log_sys.h [code]
 Declare subsystem object for the logging module.
 
file  ratelim.c [code]
 Summarize similar messages that would otherwise flood the logs.
 
file  ratelim.h [code]
 Summarize similar messages that would otherwise flood the logs.
 
file  util_bug.c [code]
 
file  util_bug.h [code]
 Macros to manage assertions, fatal and non-fatal.
 
file  win32err.c [code]
 Convert windows error codes to useful C strings.
 
file  win32err.h [code]
 Header for win32err.c.
 

Detailed Description

lib/log: Log messages to files, syslogs, etc.

You can think of this as the logical "midpoint" of the lib code": much of the higher-level code is higher-level because it uses the logging module, and much of the lower-level code is specifically written to avoid having to log, because the logging module depends on it.