fluent-logger-scala


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

org.fluentd
ArtifactId

ArtifactId

fluent-logger-scala_2.9.2
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

fluent-logger-scala
fluent-logger-scala
Project URL

Project URL

https://github.com/oza/fluent-logger-scala
Project Organization

Project Organization

org.fluentd

Download fluent-logger-scala_2.9.2

How to add to project

<!-- https://jarcasting.com/artifacts/org.fluentd/fluent-logger-scala_2.9.2/ -->
<dependency>
    <groupId>org.fluentd</groupId>
    <artifactId>fluent-logger-scala_2.9.2</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.fluentd/fluent-logger-scala_2.9.2/
implementation 'org.fluentd:fluent-logger-scala_2.9.2:0.4.0'
// https://jarcasting.com/artifacts/org.fluentd/fluent-logger-scala_2.9.2/
implementation ("org.fluentd:fluent-logger-scala_2.9.2:0.4.0")
'org.fluentd:fluent-logger-scala_2.9.2:jar:0.4.0'
<dependency org="org.fluentd" name="fluent-logger-scala_2.9.2" rev="0.4.0">
  <artifact name="fluent-logger-scala_2.9.2" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.fluentd', module='fluent-logger-scala_2.9.2', version='0.4.0')
)
libraryDependencies += "org.fluentd" % "fluent-logger-scala_2.9.2" % "0.4.0"
[org.fluentd/fluent-logger-scala_2.9.2 "0.4.0"]

Dependencies

compile (5)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.9.2
org.fluentd : fluent-logger jar 0.2.8
org.slf4j : slf4j-api jar 1.6.4
org.slf4j : slf4j-simple jar 1.6.4
net.liftweb : lift-json_2.9.2 jar 2.5-M4

test (2)

Group / Artifact Type Version
junit : junit jar 4.10
org.scalatest : scalatest_2.9.2 jar 1.9.1

Project Modules

There are no modules declared in this project.

fluent-logger-scala Build Status Maven Central Scaladoc

Fluentd logger for Scala

Many web/mobile applications generate huge amount of event logs (c,f. login, logout, purchase, follow, etc). To analyze these event logs could be really valuable for improving the service. However, the challenge is collecting these logs easily and reliably.

Fluentd solves that problem by having: easy installation, small footprint, plugins, reliable buffering, log forwarding, etc.

fluent-logger-scala is a Scala library, to record the events from Scala application, based on fluent-logger-java. Main difference between scala and java version is to support Scala Collection.

Please see QuickStart to get started!

Usage

# For Scala 2.11 and 2.12 (Since fluent-logger-scala 0.7.0)
libraryDependencies += "org.fluentd" %% "fluent-logger-scala" % "(version)"

# For Scala 2.10 users (deprecated)
libraryDependencies += "org.fluentd" %% "fluent-logger-scala" % "0.6.0"

API

fluent-logger-scala API is based on fluent-logger-java:

FluentLoggerFactory#getLogger(tag: String): FluentLogger
FluentLoggerFactory#getLogger(tag: String, host: String, port: Int): FluentLogger
FluentLoggerFactory#getLogger(tag: String, host: String, port: Int, timeout: Int, bufferCapacity: Int): FluentLogger
FluentLoggerFactory#flushAll(): Unit
FluentLoggerFactory#closeAll(): Unit

FluentLogger#log(label: String, key: String, value: Any): Boolean
FluentLogger#log(label: String, key: String, value: Any, timestamp: Long): Boolean
FluentLogger#log(tag:String, mutableMap/immutableMap[String, Any]):Boolean
FluentLogger#flush()
FluentLogger#close()

For Developers

$ ./sbt
> compile
> test
# cross Scala version testing
> + test

Publishing to Maven Central

Describe your account information in $HOME/.sbt/(sbt-version)/sonatype.sbt file:

credentials += Credentials("Sonatype Nexus Repository Manager",
    "oss.sonatype.org",
    "(Sonatype user name)",
    "(Sonatype password)")

The release command will publish signed artifacts to the Sonatype repository, and perform releasing to Maven Central:

./sbt release

License and Copyright

  • Copyright © 2011- Tsuyoshi Ozawa and Taro L. Saito
  • Apache License, Version 2.0

Misc

This document is inspired by fluent-logger-python

Versions

Version
0.4.0
0.3.0
0.2.0