The functions in this file offer simple logging abilities.
The default logfile is “fitz_log.txt”. This can overridden by
defining an environment variable “FZ_LOG_FILE”, or module specific
environment variables “FZ_LOG_FILE_
Enable the following define(s) to enable built in debug logging from within the appropriate module(s).
void
fz_log (
fz_context *ctx,
const char *fmt,
...
)
Output a line to the log.
void
fz_log_module (
fz_context *ctx,
const char *module,
const char *fmt,
...
)
Output a line to the log for a given module.
fz_output *
fz_new_log_for_module (
fz_context *ctx,
const char *module
)
Internal function to actually do the opening of the logfile.
Caller should close/drop the output when finished with it.