Logging

Generic Java/Kotlin library for implementing loggers

Лицензия

Лицензия

Категории

Категории

Logging Библиотеки уровня приложения
Группа

Группа

me.levansmith.logdog
Идентификатор

Идентификатор

logging
Последняя версия

Последняя версия

0.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Logging
Generic Java/Kotlin library for implementing loggers
Ссылка на сайт

Ссылка на сайт

https://github.com/levictorsmith/logdog-logging
Система контроля версий

Система контроля версий

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

Скачать logging

Как подключить последнюю версию

<!-- 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"]

Зависимости

runtime (4)

Идентификатор библиотеки Тип Версия
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

Модули Проекта

Данный проект не имеет модулей.

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 - levictorsmith@gmail.com

   Website - http://levansmith.me

Acknowledgments

Версии библиотеки

Версия
0.3.0
0.2.2
0.2.1
0.2.0