X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fconfig.h;h=b60002dd1a06f73e2828179faf046ba52b5ad217;hb=5c6356faa58d3109101e88ecfce207326d89ceab;hp=26fb619e8d2a0e6c97a0cd65ca1d7e58f4fd07ad;hpb=1ee374e93e0d195185731be49d60c193e4182f08;p=apps%2Fpfixtools.git diff --git a/postlicyd/config.h b/postlicyd/config.h index 26fb619..b60002d 100644 --- a/postlicyd/config.h +++ b/postlicyd/config.h @@ -65,8 +65,16 @@ struct config_t { * The parameter from CLI override the parameter from configuration file. */ uint16_t port; + + /* Log message. + */ + char *log_format; }; +#define DEFAULT_LOG_FORMAT \ + "request client=${client_name}[${client_address}] from=<${sender}> " \ + "to=<${recipient}> at ${protocol_state}" + __attribute__((nonnull(1))) config_t *config_read(const char *file);