{"id":28502002,"url":"https://github.com/fluent/fluent-logger-scala","last_synced_at":"2025-07-05T02:31:14.787Z","repository":{"id":57739321,"uuid":"2604036","full_name":"fluent/fluent-logger-scala","owner":"fluent","description":"A structured logger implementation in Scala.","archived":false,"fork":false,"pushed_at":"2019-07-30T08:38:52.000Z","size":1079,"stargazers_count":46,"open_issues_count":3,"forks_count":18,"subscribers_count":15,"default_branch":"develop","last_synced_at":"2025-07-04T10:19:50.618Z","etag":null,"topics":["fluentd","fluentd-logger","scala"],"latest_commit_sha":null,"homepage":"https://github.com/fluent","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-19T04:22:37.000Z","updated_at":"2025-01-04T00:38:17.000Z","dependencies_parsed_at":"2022-08-26T16:31:44.485Z","dependency_job_id":null,"html_url":"https://github.com/fluent/fluent-logger-scala","commit_stats":null,"previous_names":["oza/fluent-logger-scala"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/fluent/fluent-logger-scala","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-logger-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-logger-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-logger-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-logger-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluent","download_url":"https://codeload.github.com/fluent/fluent-logger-scala/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent%2Ffluent-logger-scala/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263499337,"owners_count":23476029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fluentd","fluentd-logger","scala"],"created_at":"2025-06-08T16:08:42.704Z","updated_at":"2025-07-05T02:31:14.782Z","avatar_url":"https://github.com/fluent.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"fluent-logger-scala [![Build Status](https://travis-ci.org/fluent/fluent-logger-scala.svg?branch=develop)](https://travis-ci.org/fluent/fluent-logger-scala) ![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.fluentd/fluent-logger-scala_2.12/badge.svg) [![Scaladoc](http://javadoc-badge.appspot.com/org.fluentd/fluent-logger-scala_2.12.svg?label=scaladoc)](http://javadoc-badge.appspot.com/org.fluentd/fluent-logger-scala_2.12)\n==========\n\n# Fluentd logger for Scala\n\nMany 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.\n\n[Fluentd](http://github.com/fluent/fluentd) solves that problem by having: easy installation, small footprint, plugins, reliable buffering, log forwarding, etc.\n\n**fluent-logger-scala** is a Scala library, to record the events from Scala application,  based on fluent-logger-java.\nMain difference between scala and java version is to support Scala Collection.\n\nPlease see [QuickStart](https://github.com/fluent/fluent-logger-scala/wiki/QuickStart) to get started!\n\n## Usage\n\n```scala\n# For Scala 2.11 and 2.12 (Since fluent-logger-scala 0.7.0)\nlibraryDependencies += \"org.fluentd\" %% \"fluent-logger-scala\" % \"(version)\"\n\n# For Scala 2.10 users (deprecated)\nlibraryDependencies += \"org.fluentd\" %% \"fluent-logger-scala\" % \"0.6.0\"\n```\n\n### API\n\nfluent-logger-scala API is based on fluent-logger-java:\n\n```\nFluentLoggerFactory#getLogger(tag: String): FluentLogger\nFluentLoggerFactory#getLogger(tag: String, host: String, port: Int): FluentLogger\nFluentLoggerFactory#getLogger(tag: String, host: String, port: Int, timeout: Int, bufferCapacity: Int): FluentLogger\nFluentLoggerFactory#flushAll(): Unit\nFluentLoggerFactory#closeAll(): Unit\n\nFluentLogger#log(label: String, key: String, value: Any): Boolean\nFluentLogger#log(label: String, key: String, value: Any, timestamp: Long): Boolean\nFluentLogger#log(tag:String, mutableMap/immutableMap[String, Any]):Boolean\nFluentLogger#flush()\nFluentLogger#close()\n```\n\n## For Developers\n\n```\n$ ./sbt\n\u003e compile\n\u003e test\n# cross Scala version testing\n\u003e + test\n```\n\n### Publishing to Maven Central\n\nDescribe your account information in $HOME/.sbt/(sbt-version)/sonatype.sbt file:\n\n    credentials += Credentials(\"Sonatype Nexus Repository Manager\",\n        \"oss.sonatype.org\",\n        \"(Sonatype user name)\",\n        \"(Sonatype password)\")\n\nThe release command will publish signed artifacts to the Sonatype repository, and perform releasing to Maven Central:\n\n    ./sbt release\n\n## License and Copyright\n\n* Copyright © 2011- Tsuyoshi Ozawa and Taro L. Saito\n* Apache License, Version 2.0\n\n## Misc\n\nThis document is inspired by [fluent-logger-python](https://github.com/fluent/fluent-logger-python)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent%2Ffluent-logger-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluent%2Ffluent-logger-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent%2Ffluent-logger-scala/lists"}