Skip to content

Java package for generating and parsing log lines in the logfmt style.

License

Notifications You must be signed in to change notification settings

computablefacts/logfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logfmt

Maven Central Build Status codecov

Java package for generating and parsing log lines in the 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:

<dependency>
  <groupId>com.computablefacts</groupId>
  <artifactId>logfmt</artifactId>
  <version>0.x</version>
</dependency>

Snapshots

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>

Publishing a new version

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

About

Java package for generating and parsing log lines in the logfmt style.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published