in reply to Moose based logging question

What were the shortcomings of Log:Log4perl that caused you to look for another solution? You can set the level of each appender individually without too much trouble, so you can make the program as quiet as you wish. I don't see anything in your example that Log4perl couldn't accommodate.

Replies are listed 'Best First'.
Re^2: Moose based logging question
by jandrew (Chaplain) on Feb 10, 2014 at 17:53 UTC
    jellisii2,

    My question (and sample code) wasn't intended to be an indictment of Log4perl which is a well written and well thought out program with lots of good community support. I apologize if I did not correctly communicate that earlier. I have included a list below of why I went out on my own designing a new logger but in the end you might be able to chalk it up to a learning experience. For starters tobyink has finally motivated me to learn about and try prototypes, introduced me to the bang bang operator, and pointed me to an intriguing module which is worth the effort all on it's own.

    Ultimately, I guess I prefer perl because we embrace TIMTOWDI. As you will note if you have read my list of reasons I also listed set of behaviours from Log4perl that I tried to preserve. Additionally I am fairly certain that the behaviours I am trying to preserve have been implemented less cleanly than the mainstream loggers. For me the journey is the goal and I'm just trying to have fun on the way.

      Wanting to reinvent the wheel for personal edification is one thing. Wanting to reinvent the wheel for production code is quite another.

      Good luck on your pursuit, but beware putting it into a major production environment. Someone that's not you will have to maintain it at some point.

      BTW, I have no opinions on any of the OO frameworks for perl. I don't use any of them yet.

        That was really the goal of my question. As I experiment in a way that I find useful I don't want to impose that experiment on anyone else more than I have to for content that I share with others. My personal development style implies some impact but I wanted to minimize that as much as possible if the logger stuff were to finally reach the light of day (CPAN).