Dancer...stract(3pm)
π Dancer::Logger::Abstract(3pm) β the vibe
okay bestie, so likeβ¦ this is Dancer::Logger::Abstract, an abstract logging engine for Dancer π it's a Perl module, it lives in the User Contributed Perl Documentation corner of your man pages, and it's version 1.3522 β¨
β¨ SYNOPSIS β¨
so in your configuration file you'd write something like this, no cap:
# default
logger_format: simple
# [1234] debug @0.12> [hit #123]message from your log in File.pm line 12
# custom
logger_format: %m %{%H:%M}t [%{accept_type}h]
# message from your log [11:59] [text/html]
like, simple gets you that default look, and if you're feeling β¨customβ¨ you build your own lil format string out of the pieces below. the comments in there? they're literally showing you what the output ends up looking like π«Ά
π DESCRIPTION π
This is an abstract logging engine that provides loggers with basic functionality and some sanity checking β¨
it's giving "foundation" energy β it's the base every other Dancer logger builds on, and it does the sanity checks so you don't have to π
πΈ CONFIGURATION πΈ
logger_format
This is a format string (or a preset name) to specify the log format π
The possible values are:
%hβ host emitting the request π%tβ date (local timezone, formatted like%d/%b/%Y %H:%M:%S) β°%Tβ date (local timezone, formatted like%Y-%m-%d %H:%M:%S) π%uβ date (UTC timezone, formatted like%d/%b/%Y %H:%M:%S) π%Uβ date (UTC timezone, formatted like%Y-%m-%d %H:%M:%S) π%Pβ PID π’%Lβ log level π%Dβ timer β±οΈ%mβ message π¬%fβ file name that emit the message π%lβ line from the file π%iβ request ID π%{$fmt}tβ timer formatted with a valid time format β³%{header}hβ header value π¨
There is currently a single preset log format:
simpleβ will format the message like:[%P] %L @%D> %i%m in %f l. %l
periodt π thatsimplepreset is the one you get by default, so if you never touchlogger_formatthat's the vibe you're logging in.
π₯ METHODS π₯
format_message
Provides a common message formatting π (it's the shared lil helper that does the actual formatting work)
core
Logs messages as core π
debug
Logs messages as debug π
warning
Logs messages as warning β οΈ
error
Logs messages as error π¨
info
Logs messages as info βΉοΈ
_log
A method to override. If your logger does not provide this, it will cause the application to die π
not me writing a logger and forgetting _logβ¦ bestie your whole app just dies. no cap. override it or perish π
_should
Checks a certain level number against a certain level type (core, debug, info warning, error) β
π AUTHOR π
Dancer Core Developers π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π¦
and that's the whole page, bestie π«Ά this was perl v5.40.1, dated 2026-05-05, and this manual page right here is Dancer::Logger::Abstract(3pm) β slay, go log something iconic π
β¨
π¦ where this page comes from
- ubuntu stonking: libdancer-perl 1.3522-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms