log_reopen

March 26, 2020

Name

log_reopen — This is invoked when "reopen logs" is issued though ec_console.

Synopsis

#include "hooks/core/log_reopen.h"

| void **core_log_reopen** ( | closure); |   |

void * <var class="pdparam">closure</var>;

Description

This is invoked when "reopen logs" is issued though ec_console. It is used to tell the module that the log files need to be reopened – it may or may not apply to a database-style logging facility. Note that this hook is also called when ec_rotate runs to rotate log files since that invokes "reopen logs".

Parameters

closure

A pointer to the closure function.

Return Values

This hook returns void.

Threading

This hook will be called in any thread.

See Also

log_attempt_v1, log_delivery_v1, log_permanent_failure_v1, log_reception_v1, and log_rejection, and log_transient_failure_v1.