Skip to content

Instantly share code, notes, and snippets.

@sybeck2k
sybeck2k / logback-spring.xml
Last active May 27, 2021 15:26 — forked from alexliesenfeld/logback-spring.xml
Spring Boot logging configuration for JSON output
<!--
Make sure you have the logback encoder in your dependencies:
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<version>6.2</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
@sybeck2k
sybeck2k / gist:f948ab0f52e089735b410fcefa0bb3e2
Last active May 30, 2017 09:29 — forked from blalor/gist:c325d500818361e28daf
redhat init script for consul
#!/bin/bash
#
# consul Manage the consul agent
#
# chkconfig: 2345 95 95
# description: Consul is a tool for service discovery and configuration
# processname: consul
# config: /etc/consul.conf
# pidfile: /var/run/consul.pid