Git Product home page Git Product logo

kernel's Introduction

Kernel

GitHub version Release

A simple Grails plugin which provide some core functionality and utility classes for a Grails application.

Usage

Logging

KernelLogging class provides various value to your Grails application in development as well as in production. Following are the benefits:

  1. In development, Hibernate queries are logging with faded color so that you can keep watch on your SQL performance and it doesn't affect your normal logging.
  2. Provides daily rotating logging for production with configurable directory and file name prefix.

Slack Server Notifier

Configure the following config in your application.groovy file:

grails.plugin.kernel.server.slack.notify.enabled = true
grails.plugin.kernel.server.slack.notify.webhookURL = "https://hooks.slack.com/services/xxxxxx/xxxxxxx/jJ5dbjbCnfB8EN5dBugFi3d"

Add ServerSlackNotifier.notifyServerStartup() in Bootstrap.groovy file in the last line of def init closure. This will notify the configured Slack channel on app startup with following info:

image

Add ServerSlackNotifier.notifyServerShutdown() in Bootstrap.groovy file in the last line of def destroy closure. This will notify the configured Slack channel on app shutdown with following info:

image

Compatibility

Grails Version Supported
3 >= v1.0.0
3.3.x >= v2.0.0

Change Log

See Releases for the changes.

Installation

Grails 3+

Add the following to build.gradle file of your Grails 3 application

Under repositories section

maven { url 'https://jitpack.io' }

Under dependencies section

compile "com.wizpanda:kernel:x.x.x"

Installing locally for development

To develop in kernel plugin, you can install this plugin locally and run your app directly. For this, add the following in settings.gradle of your Grails application:

// For inline Kernel plugin development
include ":kernel"
project(":kernel").projectDir = new File("../../kernel")

Then comment the line compile "com.wizpanda.plugins:kernel: from your build.gradle and add the line compile project (':kernel'). That's it.

https://medium.com/wizpanda/another-way-of-adding-local-grails-plugin-to-a-grails-app-using-the-gradle-build-tool-d60ddaf326cb

Release

  1. Change the version in the build.gradle.
  2. Commit, tag & push.

kernel's People

Contributors

ankit18singh avatar nikhilsharma8193 avatar sagrawal31 avatar viplavsoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kernel's Issues

SentryLogger usage

Hello,
I want use the SentryLogger in my grails app. I can integrate the plugin. But I have problems to configure the servername and dsn. How can I do this? When is the init() called from SentryLogger?

Thank you

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.