Giter Site home page Giter Site logo

Comments (7)

elimelt avatar elimelt commented on May 19, 2024 1

Regarding your statement on emailing logs, would an external email service be used, or is that something you'd like to implement internally and be optionally set up during configuration? Just curious!

from spring-boot-starter-beapi.

orubel avatar orubel commented on May 19, 2024 1

The point behind the 'starter' is to provide a 'basic' tool that can be configured to your needs. We provide the tool, you configure how you want. So we will test to make sure it can work with a queue but it won't support any particular queue out of the box

Most likely it will just support emailing via a local smtp install at start (https://linuxhint.com/bash_script_send_email/)

And we don't want it to email 'logs'... just that a HTTP error code happened, where and what most likely 'caused the issue'. This is both to reduce issue with users & developers having to search through code to find the issue.

from spring-boot-starter-beapi.

elimelt avatar elimelt commented on May 19, 2024 1

Ah, that makes sense. Thanks!

from spring-boot-starter-beapi.

orubel avatar orubel commented on May 19, 2024

This is actually very easy as the errors get thrown in specific places so we can easily tell why and what caused it and the chain of events leading up to that specific HTTP status error (in 90% of cases) at that location in the code.

Also, this requires a developer to run the program on the backend with this flag. So it is mostly for 'backend' testing/development and devops.

There probably won't be a massive call for hooking up message queues for this functionality; probably just a nice 'thank you' for making troubleshooting alot easier' :)

from spring-boot-starter-beapi.

orubel avatar orubel commented on May 19, 2024

well since slf4j cannot have custom LEVELs, have to just use a MARKER.

Not the best solution but still provides great output for developers.

Am integrating to provide troubleshooting solutions for developers when using 'logger.info'

May want to integrate this at a less verbose level of logging

from spring-boot-starter-beapi.

orubel avatar orubel commented on May 19, 2024

we can use WARN and then put these all under 'isWarnEnabled' (or not as it won't be called if we use log.warn)

log.info is too VERBOSE and log.error gets used in PROD. Log.warn should be perfect because practically no one uses it and we can declare it at a CLI

from spring-boot-starter-beapi.

orubel avatar orubel commented on May 19, 2024

Implemented the beginnings of this. Should be a good start. Just need to run with '--warn'

from spring-boot-starter-beapi.

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.