MuPDF X.Y.Z

fitz/log.h

Index

function

Log

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_” (e.g. “FZ_LOG_FILE_STORE”).

Enable the following define(s) to enable built in debug logging from within the appropriate module(s).

function fz_log

void
fz_log (
        fz_context *ctx,
        const char *fmt,
        ...
)

Output a line to the log.

function fz_log_module

void
fz_log_module (
        fz_context *ctx,
        const char *module,
        const char *fmt,
        ...
)

Output a line to the log for a given module.

function fz_new_log_for_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.