Giter Club home page Giter Club logo

dump-helper's Introduction

indianghost-dumphelper (v1.0.0) version1.0.0 MIT

Description

indianghost-dumphelper is a lightweight package providing a dump helper that can print an object in json format or structured text. It is hightly recommended to use it in log files when it's not possible to debug objects in localhost.

Requirements

  • JDK 1.8+

Install

Maven

<dependency>
    <groupId>io.github.indianghost</groupId>
    <artifactId>indianghost-dumphelper</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

implementation group: 'io.github.indianghost', name: 'indianghost-dumphelper', version: '1.0.0'

Gradle (Short)

implementation 'io.github.indianghost:indianghost-dumphelper:1.0.0'

Gradle (Kotlin)

implementation("io.github.indianghost:indianghost-dumphelper:1.0.0")

SBT

libraryDependencies += "io.github.indianghost" % "indianghost-dumphelper" % "1.0.0"

Ivy

<dependency org="io.github.indianghost" name="indianghost-dumphelper" rev="1.0.0"/>

Grape

@Grapes(
    @Grab(group='io.github.indianghost', module='indianghost-dumphelper', version='1.0.0')
)

Leiningen

[io.github.indianghost/indianghost-dumphelper "1.0.0"]

Buildr

'io.github.indianghost:indianghost-dumphelper:jar:1.0.0'

Examples of use

First of all you should import the class DumpHelper:
import io.github.indianghost.DumpHelper;
Then you can use the method dumpProperties(obj) as:
log.info(DumpHelper.dumpProperties(entityForDemo));
to get the output:

io.github.indianghost.EntityForDemo@351d0846[
  age=30
  marks=[9.62, 11.14, 17.0]
  name=Lorem ipsum
]

Or, you can use the method dumpAsJson(obj) as:
log.info(DumpHelper.dumpAsJSON(entityForDemo));
to get the output:

{
  "name" : "Lorem ipsum",
  "age" : 30,
  "marks" : [ 9.62, 11.14, 17.0 ]
}

Copyright and license

Copyright 2022 Achraf BELLAALI indianghost-dump-helper is a free open-source project. The code is released under The MIT LICENSE you can do whatever you want with it !

Support My development

If you found it helpful, you can support me to develop new projects By : Donate

dump-helper's People

Contributors

indianghost avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

dump-helper's Issues

Compatibility problem with Jetty Server 9.4.5.v20170502

I used this package with in an application running in Jetty server version 9.4.5.v20170502 and I got this problem:
Error scanning entry META-INF/versions/9/module-info.class from jar file:///2.13.2/jackson-core-2.13.2.jar

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.