2025-12-23 Tue

· rnkn's blog


Made some attempts to set up access logs. Mojolicious has several hooks that offering varying degrees of usefulness for logging. after_dispatch seemed like the obvious choice, but this only logs requests that go to a route. after_render was another option, but this lacks things like return code. Plugin::AccessLog works on after_build_tx but the problem with this is it has no access to the controller, which means I can't access the stashed value of the logfile.

Stats will only be generated if the user has created /private/stats.html.

last updated: