-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
518 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# If this is not a git repository, use the existing version | ||
if [ ! -d '.git' ]; then | ||
exit | ||
fi | ||
|
||
if [ -n "$1" ]; then | ||
VERSION="$1" | ||
else | ||
VERSION="$(git describe)" | ||
if [ $(git status -s 2>/dev/null | wc -l) -ne 0 ]; then | ||
VERSION="${VERSION}-dirty" | ||
fi | ||
fi | ||
|
||
sed "s/<VERSION>/${VERSION}/g" src/lc-lib/core/version.go.template > src/lc-lib/core/version.go | ||
sed "s/<VERSION>/${VERSION#v}/g" log-courier.gemspec.template > log-courier.gemspec | ||
|
||
echo "Setting Log Courier Version ${VERSION}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Command Line Arguments | ||
|
||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)* | ||
|
||
- [Overview](#overview) | ||
- [`-config=<path>`](#-config=path) | ||
- [`-config-test`](#-config-test) | ||
- [`-cpuprofile=<path>`](#-cpuprofile=path) | ||
- [`-from-beginning`](#-from-beginning) | ||
- [`-list-supported`](#-list-supported) | ||
- [`-version`](#-version) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
## Overview | ||
|
||
The `log-courier` command accepts various command line arguments. | ||
|
||
## `-config=<path>` | ||
|
||
The path to the JSON configuration file to load. | ||
|
||
``` | ||
log-courier -config=/etc/log-courier/log-courier.json | ||
``` | ||
|
||
## `-config-test` | ||
|
||
Load the configuration and test it for validity, then exit. | ||
|
||
Will exit with code 0 if the configuration is valid and would not prevent | ||
log-courier from starting up. Will exit with code 1 if an error occurred, | ||
printing the error to standard output. | ||
|
||
## `-cpuprofile=<path>` | ||
|
||
The path to file to write CPU profiling information to, when investigating | ||
performance problems. Log Courier will run for a small period of time and then | ||
quit, writing the profiling information to this file. | ||
|
||
This flag should generally only be used when requested by a developer. | ||
|
||
## `-from-beginning` | ||
|
||
The `.log-courier` file stores the current shipping status as logs are shipped | ||
so that in the event of a service restart, not a single log entry is missed. | ||
|
||
In the event that the `.log-courier` file does not exist, Log Courier will by | ||
default start the initial shipping of log files from the end of the file. | ||
Setting this flag in the initial startup of Log Courier will trigger files to | ||
start shipping from the beginning of the file instead of the end. | ||
|
||
After the first `.log-courier` status file is written, all subsequent newly | ||
discovered log files will start from the begining, regardless of this flag. | ||
|
||
## `-list-supported` | ||
|
||
Print a list of available transports and codecs provided by this build of Log | ||
Courier, then exit. | ||
|
||
## `-version` | ||
|
||
Print the version of this build of Log Courier, then exit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.