gfc-logging


License

License

Apache-style
Categories

Categories

Logging Application Layer Libs
GroupId

GroupId

com.gilt
ArtifactId

ArtifactId

gfc-logging_2.11
Last Version

Last Version

0.0.8
Release Date

Release Date

Type

Type

jar
Description

Description

gfc-logging
gfc-logging
Project Organization

Project Organization

com.gilt

Download gfc-logging_2.11

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.8
org.slf4j : slf4j-api jar 1.7.25

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 3.0.1

Project Modules

There are no modules declared in this project.

gfc-logging Maven Central Build Status Coverage Status Join the chat at https://gitter.im/gilt/gfc

A library that contains logging related scala utility classes. Part of the Gilt Foundation Classes.

Getting gfc-logging

The latest version is 0.0.8, which is cross-built against Scala 2.10.x, 2.11.x and 2.12.x.

If you're using SBT, add the following line to your build file:

libraryDependencies += "com.gilt" %% "gfc-logging" % "0.0.8"

For Maven and other build tools, you can visit search.maven.org. (This search will also list other available libraries from the gilt fundation classes.)

Contents and Example Usage

com.gilt.gfc.logging.Loggable

The com.gilt.gfc.logging.Loggable trait can be mixed in to add a logger instance to a type that uses slf4j to abstract the underlying logging framework and supports lazy log message computation.

A logger instance with each instance of this trait:

trait SomeTrait extends AnotherTrait with Loggable {
  def logSomething: Unit = {
    info("This " + "String" + " is " + "constructed" + " lazily")
  }
}

A logger singleton for all instances of the companion class:

object SomeThing extends OpenLoggable

class SomeThing {
  import SomeThing._

  def logSomething: Unit = {
    info("This " + "String" + " is " + "constructed" + " lazily")
  }
}

License

Copyright 2018 Gilt Groupe, Inc.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

com.gilt

Gilt Tech

Versions

Version
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2