Code Monkey home page Code Monkey logo

gflog's Introduction

Garbage Free Log

GitHub Maven Central

Continuous Integration CodeQL

Highly efficient garbage-free logging framework for Java 8+.

Use

Add the following dependencies to your project:

implementation 'com.epam.deltix:gflog-api:3.0.5'
runtimeOnly    'com.epam.deltix:gflog-core:3.0.5'

Use the following sample to log a message:

Log log = LogFactory.getLog("my-logger");
log.info()
    .append("Hello world! This is a ")
    .append(LogLevel.INFO)
    .append(" message for you!")
    .commit();

Or:

Log log = LogFactory.getLog("my-logger");
log.info("Hello world! This is a %s message for you!")
    .with(LogLevel.INFO);

Reference

  • Bridges - how to configure bridges for the existing logging frameworks.
  • Configuration - how to configure gflog.
  • XML Config - how to configure gflog with a xml config.
  • Performance - what gflog's performance.

Build

Build the project with Gradle and Java 8:

./gradlew build

Acknowledgment

This project was inspired by gflogger library by Vladimir Dolzhenko. It originally started as a fork but further enhancements and new API made it into a separate project.

License

Copyright (C) 2023 EPAM

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

gflog's People

Contributors

artsiomkorzun avatar cm-howard avatar ypldan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gflog's Issues

Support slf4j v2.

When adding a org.slf4j:slf4j-api v2+ dependency, receive the following warning:

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J: Ignoring binding found at [jar:file:/home/user/.gradle/caches/modules-2/files-2.1/com.epam.deltix/gflog-slf4j/3.0.4/b7f6893e03b8fcc2277b1c6c51062f677dc18c76/gflog-slf4j-3.0.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.

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.