LogMod is used log requests according to the W3C extended log file format.
See pod doc
Slots
- dirSource
-
const File dir := noDir
Directory used to store log file(s).
- fieldsSource
-
const Str fields := ...
Format of the log records as a string of #Fields names. See pod doc
- filenameSource
-
const Str filename := ""
Log filename pattern. The name may contain a pattern between
{}
using the pattern format ofsys::DateTime.toLocale
. For example to maintain a log file per month, use a filename such as "mylog-{YYYY-MM}.log". -
static internal Str formatCsHeader(WebReq req, Str headerName)
-
static internal Str formatCsUriQuery(WebReq req, WebRes res)
-
const private FileLogger logger
- makeSource
-
new make(|This|? f := null)
Constructor with it-block.
-
const static private File noDir := File(`no-dir-configured`)
- onServiceSource
-
override Void onService()
Overrides web::Weblet.onService
Doc inherited from web::Weblet.onService
Service a web request. The default implementation routes to onGet, onPost, etc based on the request's method.
- onStopSource
-
override Void onStop()
Overrides web::WebMod.onStop
Doc inherited from web::WebMod.onStop
Cleanup callback when web server is stoppped.