Code Monkey home page Code Monkey logo

Comments (7)

do-know avatar do-know commented on August 23, 2024

This is technically already possible, since the messages are sent to screen via logger. If you check the "Custom Logging" section at https://github.com/do-know/Crypt-LE, there is an example of log configuration file (used with -log-config option) - you can specify a different log level (WARN or ERROR for example instead of DEBUG). However an option to reduce the logging level without the custom file might be introduced at some point too.

from crypt-le.

akauste avatar akauste commented on August 23, 2024

Yes, I noted that. Writing the config file just feels extra work, when an option/flag could do. My point is that when the output is noisy I get an email from the cron job every time. I'd like to recieve one only when there's something to worry about. Currently I'm using the config file.

from crypt-le.

do-know avatar do-know commented on August 23, 2024

Option would make sense indeed. From your usage experience, would you rather had an option that suppresses both info messages and warnings, or only info messages? For example, the warning about not being able to pull the issuer's certificate might be important (depending on how you work with the certificates later on).

from crypt-le.

akauste avatar akauste commented on August 23, 2024

I think I'd like to see warnings. Maybe the best way would be --loglevel=WARNING or something that could use Log4Perl easy init with the given loglevel. Then user could easily set the level that he wants.

from crypt-le.

do-know avatar do-know commented on August 23, 2024

With --debug switch already there specifying the level explicitly might get a bit confusing, but I'll see to adding either something like that or just a specific silent/quiet option for the next version.

from crypt-le.

do-know avatar do-know commented on August 23, 2024

Update: Version 0.24 is going to CPAN today. Apart from other changes, it now supports '--quiet' switch that forces log level to ERROR. Note that the client does not have too many warnings and the few which are there should not be impacting the workflow normally, so both info and warnings will get suppressed if that option is used. Using loglevel option might be rather confusing for inexperienced users, while for the experienced ones log-config gives very flexible way to re-configure logging to their liking.

Once on CPAN, the code will also go to GitHub, Docker Hub, and will be released as Windows binaries.

from crypt-le.

do-know avatar do-know commented on August 23, 2024

Implemented in v0.24.

from crypt-le.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.