Java package for generating and parsing log lines in the logfmt style.
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:
<dependency>
<groupId>com.computablefacts</groupId>
<artifactId>logfmt</artifactId>
<version>0.x</version>
</dependency>
Snapshots of Logfmt built from the master
branch are available through Sonatype
using the following dependency:
<dependency>
<groupId>com.computablefacts</groupId>
<artifactId>logfmt</artifactId>
<version>0.x-SNAPSHOT</version>
</dependency>
In order to be able to download snapshots from Sonatype add the following profile
to your project pom.xml
:
<profiles>
<profile>
<id>allow-snapshots</id>
<activation><activeByDefault>true</activeByDefault></activation>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
Deploy a release to Maven Central with these commands:
$ git tag <version_number>
$ git push origin <version_number>
To update and publish the next SNAPSHOT version, just change and push the version:
$ mvn versions:set -DnewVersion=<version_number>-SNAPSHOT
$ git commit -am "Update to version <version_number>-SNAPSHOT"
$ git push origin master