Fantom

 

const class

webmod::LogMod

sys::Obj
  web::WebMod
    webmod::LogMod

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 of sys::DateTime.toLocale. For example to maintain a log file per month, use a filename such as "mylog-{YYYY-MM}.log".

makeSource

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

Constructor with it-block.

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.