type

LogMod

src const class LogMod : WebMod

LogMod is used log requests according to the W3C extended log file format.

See pod doc

constructors

make

Constructor with it-block.

fields

dir

Directory used to store log file(s).

fields

Format of the log records as a string of #Fields names.

filename

Log filename pattern.

methods

Slot Details

dir

src const File dir := noDir

Directory used to store log file(s).

fields

src const Str fields := ...

Format of the log records as a string of #Fields names. See pod doc

filename

src const Str filename := ""

Log filename pattern. The name may contain a pattern between {} using the pattern format of DateTime.toLocale. For example to maintain a log file per month, use a filename such as "web-{YYYY-MM}.log".

make

src new make(|This|? f := null)

Constructor with it-block.

onService

src virtual override Void onService()

onStop

src virtual override Void onStop()