Giter Site home page Giter Site logo

mismatch / remote-wfly-logger-configurator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

Simple extensible utility to check configuration of specific logger, enable or disable it dynamically via jboss-cli.sh on remote server.

License: MIT License

Shell 100.00%
logging wildfly

remote-wfly-logger-configurator's Introduction

Remote WildFly logger configurator

The motivation behind this utility

There are cases when you want to add some logger category on the fly on a remote WildFly instance, investigate what you need and then remove it. Also, quite often, you have to do this on more than one instance. And it is not rare case that these instances are inside Docker containers. So, for each instance, you need to:

  • ssh to remote server
  • go inside Docker container
  • then execute lengthy command (you are lucky if you remember all details)
  • do with logs what you need
  • repeat first 3 steps to remove added logger category

It's boring and error-prone activity that deters your investigations. No more :)

The solution

Introduce extensible framework to define commands that operate on logger categories and make these commands configurable. This allow to apply the same command for any logger category. Also track all server instances in one file. You defined commands in *.cli files under cmd directory. The name of file determines command's name. You define configurations in *.properties files under cfg directory. The name of file is an alias for logger category. Finally, you define servers' group in text file without extension and store it under hosts directory. The name of file determines servers' group name.

Then you can issue ./configurator.sh <command> <logger category alias> <host or its alias>

and this will execute command for specified logger category on each WildFly instance in the specified group.

E.g. ./configurator.sh enable ispnCfg stg

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.