An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Logfmt

![Maven Central](https://img.shields.io/maven-central/v/com.computablefacts/logfmt)
[![Build Status](https://travis-ci.com/computablefacts/logfmt.svg?branch=master)](https://travis-ci.com/computablefacts/logfmt)
[![codecov](https://codecov.io/gh/computablefacts/logfmt/branch/master/graph/badge.svg)](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
```