gfc-logging


License

License

Categories

Categories

Logging Application Layer Libs
GroupId

GroupId

org.gfccollective
ArtifactId

ArtifactId

gfc-logging_2.13
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

gfc-logging
gfc-logging
Project URL

Project URL

https://github.com/gfc-collective/gfc-logging
Project Organization

Project Organization

org.gfccollective
Source Code Management

Source Code Management

https://github.com/gfc-collective/gfc-logging.git

Download gfc-logging_2.13

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.1
org.slf4j : slf4j-api jar 1.7.30

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.13 jar 3.1.0

Project Modules

There are no modules declared in this project.

gfc-logging Maven Central Build Status Coverage Status

A library that contains logging related scala utility classes. A fork and new home of the now unmaintained Gilt Foundation Classes (com.gilt.gfc), now called the GFC Collective, maintained by some of the original authors.

Getting gfc-logging

The latest version is 1.0.0, released on 21/Jan/2020 and cross-built against Scala 2.12.x and 2.13.x.

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

libraryDependencies += "org.gfccollective" %% "gfc-logging" % "1.0.0"

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

Contents and Example Usage

org.gfccollective.logging.Loggable

The org.gfccollective.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

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

org.gfccollective

The GFC Collective

The new home of the (former) Gilt Foundation Classes

Versions

Version
1.0.0