Dancer...Syslog(3pm)

πŸ“¦
version 0.6 Β· 2 versions
  • 0.6 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.6 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ‘‘ 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 to openlog() exactly as per Sys::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>

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