Logging

Generic Java/Kotlin library for implementing loggers

License

License

Categories

Categories

Logging Application Layer Libs
GroupId

GroupId

me.levansmith.logdog
ArtifactId

ArtifactId

logging
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

Logging
Generic Java/Kotlin library for implementing loggers
Project URL

Project URL

https://github.com/levictorsmith/logdog-logging
Source Code Management

Source Code Management

https://github.com/levictorsmith/logdog-logging

Download logging

How to add to project

<!-- https://jarcasting.com/artifacts/me.levansmith.logdog/logging/ -->
<dependency>
    <groupId>me.levansmith.logdog</groupId>
    <artifactId>logging</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/me.levansmith.logdog/logging/
implementation 'me.levansmith.logdog:logging:0.3.0'
// https://jarcasting.com/artifacts/me.levansmith.logdog/logging/
implementation ("me.levansmith.logdog:logging:0.3.0")
'me.levansmith.logdog:logging:jar:0.3.0'
<dependency org="me.levansmith.logdog" name="logging" rev="0.3.0">
  <artifact name="logging" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.levansmith.logdog', module='logging', version='0.3.0')
)
libraryDependencies += "me.levansmith.logdog" % "logging" % "0.3.0"
[me.levansmith.logdog/logging "0.3.0"]

Dependencies

runtime (4)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.21
org.jetbrains.kotlinx : kotlinx-coroutines-core jar 1.1.1
com.google.code.gson : gson jar 2.8.5
org.json : json jar 20180813

Project Modules

There are no modules declared in this project.

Logging Tools

Overview

This is a generic Java/Kotlin library that enables creating feature-full loggers for any context.

These tools come equipped with useful capabilities like logging at different levels (that you define), counters, timers, outputting data to a table, and JSON/XML output.

Setup

Gradle

implementation 'me.levansmith.logdog:logging:0.3.0'

Maven

<dependency>
    <groupId>me.levansmith.logdog</groupId>
    <artifactId>logdog</artifactId>
    <version>0.3.0</version>
</dependency>

Sample Usage

// Some included methods
LoggerImpl.log("Some message") // Auto tagged
LoggerImpl.e.log("SOME_TAG", "Some error message") // Error level message
LoggerImpl.count("sample_counter") // Increment "sample_counter"
LoggerImpl.table(listOf(1,2,3)) // Outputs a table with that data (with indexes)
LoggerImpl.hide.log("This is a hidden message!") // Handy for quick changes

// Some configurations
LogDogConfig.disableLogs = true
LoggerImpl.log("Will not be displayed")
LoggerImpl.log("Nor this")
LoggerImpl.force.log("Will always show, no matter what") // Definitely will show ;)
LogDogConfig.disableLogs = false

LogDogConfig.logThreshold = LogProviderImpl.ERROR
LoggerImpl.log("Defaults to minimum level") // Won't show in this case
LoggerImpl.e.log("Error level message") // Will show

Developed By

  • LeVan Smith

   Email - [email protected]

   Website - http://levansmith.me

Acknowledgments

Versions

Version
0.3.0
0.2.2
0.2.1
0.2.0