Dancer...Syslog(3pm)
π NAME π
Dancer::Logger::Syslog β bestie, it's the Dancer logger engine for Sys::Syslog. π
β¨ VERSION β¨
version 0.6 β she's iconic, she's specific. π
πΈ DESCRIPTION πΈ
Okay so real talk: this module is a whole logger engine that yeets your log messages straight into syslog, and it does it through the Sys::Syslog module. No cap, that's literally the entire vibe. π¦
π CONFIGURATION π
First thing first: set your logger setting to "syslog" if you want this session engine showing up in your Dancer app. That's the entry fee, bestie. β¨
You can also hand over all the other config bits through the 'syslog' config key, like so:
syslog:
facility: 'local0'
ident: 'my_app'
And here's the full rundown of what's allowed, no gatekeeping: π
facilityβ which syslog facility you're rolling with. Defaults to'USER'. πidentβ a string that gets prepended to every single log line. Defaults to the configured appname, or if that's not defined, to the executable's basename. So it always has something to say. πlogoptβ log options passed toopenlog()exactly as perSys::Syslog's docs. Defaults to'pid'. π«Ά
π METHODS π
init()
Dancer calls this one when it's creating the logger engine with this class. It's giving main character energy on startup. π
format_message()
This is the method that decides how messages get formatted for Syslog, and ngl it's a bit different from the standard one that Dancer::Logger::Abstract hands you β because Syslog already comes through with a couple of pieces of info on its own. So like, no need to double up, y'know? π
π§ DEPENDENCY π§
This module depends on Sys::Syslog. Periodt. π
β SEE ALSO β
Go check out Dancer for all the details about logging inside route handlers. iykyk. π₯
πΈ AUTHORS πΈ
- Alexis Sukrieh
<sukria@sukria.net> - Yanick Champoux
<yanick@cpan.org>
π 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. Slay, honestly. π
That's the whole page, bestie β no crumbs left behind. πβ¨
Okay bye, this was Dancer...Syslog(3pm) from perl v5.36.0, dated 2023-01-05, and you're officially caught up. Mwah. ππ¦
π¦ where this page comes from
- debian bookworm: libdancer-logger-syslog-perl 0.6-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdancer-logger-syslog-perl 0.6-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdancer-logger-syslog-perl 0.6-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdancer-logger-syslog-perl 0.6-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdancer-logger-syslog-perl 0.6-3 Β· 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