Git Product home page Git Product logo

poc_logback's Introduction

poc_logback

Probe of concept created to check some capabilities related to logback.

  • As Developer when I am running the application locally, I would like to:
    • get logs with full details in the IDE console.
    • get logs with full details in a log file.
    • be notified/highlighted when confidential data is being send to the logs
  • As Developer when I deploy the application in a server, I would like to:
    • be able to enable extra logs details without needed changing the application source code.
    • be able to enable confidential data logging ad hoc to a separated log for troubleshooting so that I do not need to review the logs to remove confidential data later. I just want to remove the file used while troubleshooting.

Usage

IDE Console log

Will show confidential data when running application locally.

  • to enable console log, it just required not to be null. enableConsole=true;

CHECK LOG

Is a helpful log which will include message which contains only confidential attributes. Only available when CONSOLE log is enable.

  • log with the CONFIDENTIAL marker, are not a problem here, because logs with the marker won't be included in application log.
  • logs without the CONFIDENTIAL marker, are an ISSUE, it means that private data will be shown in application log.

TROUBLESHOOTING log

Will show confidential data in a separated file.

  • to enable troubleshooting log, enableTroubleshooting=true;
  • It can be enabled for local or lower envs, to get extra details.
  • It can be enabled ad hoc in PRODUCTION for troubleshooting, it will log in a separated file that can be removed later.

APPLICATION log

Won't show confidential data if CONFIDENTIAL marker is present. It also has fixed log level to INFO. Even when root log level is changes production will only log INFO level.

Links

poc_logback's People

Contributors

ezequiel-g avatar

Watchers

 avatar

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.