slf4j-gwt

Simple slf4j api implementation for GWT

License

License

Categories

Categories

GWT (Google Web Toolkit) User Interface Web Frameworks SLF4J Application Layer Libs Logging
GroupId

GroupId

ru.finam
ArtifactId

ArtifactId

slf4j-gwt
Last Version

Last Version

1.7.7.1
Release Date

Release Date

Type

Type

jar
Description

Description

slf4j-gwt
Simple slf4j api implementation for GWT
Project URL

Project URL

https://github.com/FinamTrade/slf4j-gwt
Source Code Management

Source Code Management

https://github.com/FinamTrade/slf4j-gwt

Download slf4j-gwt

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.7
com.google.gwt : gwt-user jar 2.7.0

Project Modules

There are no modules declared in this project.

Simple slf4j api implementation for GWT

The aim of this project is to provide developers with an implementation of the Simple Logging Facade for Java (SLF4J 1.7.7) API for the GWT client side. Right now the project provides the basic implementation of the SLF4J API using the java.util.logging (JUL) logging framework supported since GWT 2.1. All logging messages are printed to developer/firebug console. Note that slf4j-gwt depends on the latest stable GWT (GWT 2.7).

Usage

slf4j-gwt is available in maven central

Just include it in your pom.xml

<dependency>
    <groupId>ru.finam</groupId>
    <artifactId>slf4j-gwt</artifactId>
    <version>1.7.7.1</version>
</dependency>

or gradle build:

dependencies {
    compile 'ru.finam:slf4j-gwt:1.7.7.1'
}

or ivy:

<dependency org="ru.finam" name="slf4j-gwt" rev="1.7.7.1" />

Add dependency in your gwt module descriptor (*.gwt.xml):

<inherits name="ru.finam.slf4jgwt.logging.gwt.Logging"/>

You can also set logging level (ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE):

<set-property name="gwt.logging.logLevel" value="INFO"/>

Enable or disable gwt logging:

<set-property name="gwt.logging.enabled" value="TRUE"/>

If you want to provide slf4j API (e.g., in library module):

<inherits name="ru.finam.slf4jgwt.api.API"/>

If you want to provide slf4j but to not log anything in your application:

<inherits name="ru.finam.slf4jgwt.logging.nop.NOP"/>

ru.finam.slf4jgwt.logging.util.Util module provides a handful Log class to log messages without instantiating Logger in client code.

ru.finam

FinamTrade

Versions

Version
1.7.7.1
1.2.1
1.2
1.1
1.0