https://github.com/computablefacts/logfmt
Java package for generating and parsing log lines in the logfmt style.
https://github.com/computablefacts/logfmt
java-library logfmt logger
Last synced: 3 months ago
JSON representation
Java package for generating and parsing log lines in the logfmt style.
- Host: GitHub
- URL: https://github.com/computablefacts/logfmt
- Owner: computablefacts
- License: apache-2.0
- Created: 2020-10-05T19:55:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T22:31:30.000Z (about 3 years ago)
- Last Synced: 2025-07-23T19:07:16.144Z (11 months ago)
- Topics: java-library, logfmt, logger
- Language: Java
- Homepage:
- Size: 70.3 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Logfmt

[](https://travis-ci.com/computablefacts/logfmt)
[](https://codecov.io/gh/computablefacts/logfmt)
Java package for generating and parsing log lines in the [logfmt](https://brandur.org/logfmt) style.
## Adding Logfmt to your build
Logfmt's Maven group ID is `com.computablefacts` and its artifact ID is `logfmt`.
To add a dependency on Logfmt using Maven, use the following:
```xml
com.computablefacts
logfmt
0.x
```
## Snapshots
Snapshots of Logfmt built from the `master` branch are available through Sonatype
using the following dependency:
```xml
com.computablefacts
logfmt
0.x-SNAPSHOT
```
In order to be able to download snapshots from Sonatype add the following profile
to your project `pom.xml`:
```xml
allow-snapshots
true
snapshots-repo
https://s01.oss.sonatype.org/content/repositories/snapshots
false
true
```
## Publishing a new version
Deploy a release to Maven Central with these commands:
```bash
$ git tag
$ git push origin
```
To update and publish the next SNAPSHOT version, just change and push the version:
```bash
$ mvn versions:set -DnewVersion=-SNAPSHOT
$ git commit -am "Update to version -SNAPSHOT"
$ git push origin master
```