mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-01 23:18:20 +02:00
21 lines
398 B
Plaintext
21 lines
398 B
Plaintext
/* Icinga 2 | (c) 2020 Icinga GmbH | GPLv2+ */
|
|
|
|
#include "base/filelogger.hpp"
|
|
|
|
library base;
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
class AccessLogger : FileLogger
|
|
{
|
|
activation_priority -99;
|
|
|
|
[config] String format {
|
|
default {{{ return R"EOF($remote.address$ - $remote.user$ [$time.%d/%b/%Y:%T %z$] "$request.method$ $request.uri$ HTTP/$request.protocol$" $response.status$ $response.size$
|
|
)EOF"; }}}
|
|
};
|
|
};
|
|
|
|
}
|