quiet-slf4j


Лицензия

Лицензия

Категории

Категории

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

Группа

com.dadrox
Идентификатор

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

quiet-slf4j
Последняя версия

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

0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

quiet-slf4j
quiet-slf4j
Ссылка на сайт

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

https://github.com/dadrox/quiet-slf4j
Организация-разработчик

Организация-разработчик

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

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

https://github.com/dadrox/quiet-slf4j

Скачать quiet-slf4j

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

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

Зависимости

provided (1)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.0

test (2)

Идентификатор библиотеки Тип Версия
junit : junit-dep jar 4.10
com.dadrox : sbt-junit jar 0.2

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

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

Quiet slf4j

An slf4j logger that, by default, logs nothing.

This is intended to suppress log output during testing.

It is written in Java, so should be usable almost anywhere.

Usage

In order for this to really work, you need to set all of your other slf4 log binders to no be available during test.

Dependency

SBT

build.sbt

libraryDependencies ++= Seq(
    "org.slf4j" % "slf4j-api" % "1.7.0",
    "com.dadrox" % "quiet-slf4j" % "0.1" % "test")

This way you get the quiet logger while running tests and the real logger in every other context.

Configuration

To enable more logging than none, use the system property log.level and give it the desired log level:

off, trace, debug, info, warn. error, or all

You can also just use the first letter or fragment of the level (case insensitive) in the system property.

Examples

> mvn -Dlog.level=debug test

> sbt -Dlog.level=e test

Yes, it really is that easy!

License

Copyright (C) 2012-2013, Christopher Wood (dadrox)

Published under BSD 2-Clause License

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

Версия
0.1