Code Monkey home page Code Monkey logo

log-persist's Introduction

log-persist Project

This is a series of modules for Liferay 7 CE / Liferay DXP to persist and restore logging config changes across restarts.

Note this is pretty simple. First there's a Service Builder layer to manage the persistence of the log configurtion details.

Next there's a PortletFilter component to intercept action requests for the Server Admin portlet. The filter intercepts the action and, if either an add for a category or update for a category, the values will be persisted.

When the component is activating, it will retrieve the current list of stored filter definitions and will reapply them.

Because of the way that updates are submitted, when you save a single update change each row on the page will be persisted.

Also the log levels will only be updated when the component starts.

So in a cluster configuration, changes to logs in one node will be persisted but other nodes will not process the changes until they are restarted.

Normally this will not be a problem as you don't often change logging levels all that frequently.

But it is noted here so you can keep it in mind.

log-persist's People

Contributors

dnebing avatar

Watchers

James Cloos avatar Gustav Novotný 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.