Skip to content

Commit

Permalink
use new tap
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Jan 5, 2023
1 parent b9312fa commit 6593d94
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 25 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@ Read logs from `stdin` and prints them back to `stdout`, but prettier.

# Using it

[Grab a release](https://github.com/aybabtme/humanlog/releases) or :
[Grab a release](https://github.com/humanlogio/humanlog/releases) or :

## With Go installed

```bash
$ go get -u github.com/aybabtme/humanlog/...
$ go get -u github.com/humanlogio/humanlog/...
```

## On linux

```bash
wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.6.0/humanlog_0.6.0_linux_amd64.tar.gz | tar xvz
wget -qO- https://github.com/humanlogio/humanlog/releases/download/0.6.2/humanlog_0.6.2_linux_amd64.tar.gz | tar xvz
```

## On OS X

```bash
brew tap aybabtme/homebrew-tap
brew tap humanlogio/homebrew-tap
brew install humanlog
```

Expand All @@ -33,16 +34,16 @@ entries are encountered by `humanlog`. Unrecognized lines are left unchanged.
$ humanlog < /var/log/logfile.log
```

![2__fish___users_antoine_gocode_src_github_com_aybabtme_humanlog__fish_](https://cloud.githubusercontent.com/assets/1189716/4328545/f2330bb4-3f86-11e4-8242-4f49f6ae9efc.png)
![2__fish___users_antoine_gocode_src_github_com_humanlogio_humanlog__fish_](https://cloud.githubusercontent.com/assets/1189716/4328545/f2330bb4-3f86-11e4-8242-4f49f6ae9efc.png)

# Contributing

How to help:

* __support more log formats__: by submitting `human.Handler` implementations.
* __live querying__: add support for filtering in log output in real time.
* __charting__: some key-values have semantics that could be charted in real time. For
instance, durations, frequency of numeric values, etc. See the [l2met][] project.
- **support more log formats**: by submitting `human.Handler` implementations.
- **live querying**: add support for filtering in log output in real time.
- **charting**: some key-values have semantics that could be charted in real time. For
instance, durations, frequency of numeric values, etc. See the [l2met][] project.

# Usage

Expand All @@ -54,7 +55,7 @@ USAGE:
humanlog [global options] command [command options] [arguments...]
VERSION:
0.7.0
0.6.2
AUTHOR:
Antoine Grondin <antoinegrondin@gmail.com>
Expand All @@ -63,6 +64,7 @@ COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--config value specify a config file to use, otherwise uses the default one
--skip value keys to skip when parsing a log entry
--keep value keys to keep when parsing a log entry
--sort-longest sort by longest key after having sorted lexicographically
Expand All @@ -79,4 +81,5 @@ GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```

[l2met]: https://github.com/ryandotsmith/l2met
2 changes: 1 addition & 1 deletion goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:

brews:
- tap:
owner: aybabtme
owner: humanlogio
name: homebrew-tap

nfpms:
Expand Down
38 changes: 24 additions & 14 deletions script/README.tmpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Read logs from `stdin` and prints them back to `stdout`, but prettier.
[Grab a release](https://github.com/humanlogio/humanlog/releases) or :

## With Go installed

```bash
$ go get -u github.com/humanlogio/humanlog/...
```
Expand All @@ -20,7 +21,7 @@ wget -qO- https://github.com/humanlogio/humanlog/releases/download/{{.version}}/
## On OS X

```bash
brew tap aybabtme/homebrew-tap
brew tap humanlogio/homebrew-tap
brew install humanlog
```

Expand All @@ -39,10 +40,10 @@ $ humanlog < /var/log/logfile.log

How to help:

* __support more log formats__: by submitting `human.Handler` implementations.
* __live querying__: add support for filtering in log output in real time.
* __charting__: some key-values have semantics that could be charted in real time. For
instance, durations, frequency of numeric values, etc. See the [l2met][] project.
- **support more log formats**: by submitting `human.Handler` implementations.
- **live querying**: add support for filtering in log output in real time.
- **charting**: some key-values have semantics that could be charted in real time. For
instance, durations, frequency of numeric values, etc. See the [l2met][] project.

# Usage

Expand All @@ -57,19 +58,28 @@ VERSION:
{{.version}}
AUTHOR:
Antoine Grondin - <antoinegrondin@gmail.com>
Antoine Grondin <antoinegrondin@gmail.com>
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--skip '--skip option --skip option' keys to skip when parsing a log entry
--keep '--keep option --keep option' keys to keep when parsing a log entry
--sort-longest sort by longest key after having sorted lexicographically
--skip-unchanged skip keys that have the same value than the previous entry
--truncate truncates values that are longer than --truncate-length
--truncate-length '15' truncate values that are longer than this length
--help, -h show help
--version, -v print the version
--config value specify a config file to use, otherwise uses the default one
--skip value keys to skip when parsing a log entry
--keep value keys to keep when parsing a log entry
--sort-longest sort by longest key after having sorted lexicographically
--skip-unchanged skip keys that have the same value than the previous entry
--truncate truncates values that are longer than --truncate-length
--truncate-length value truncate values that are longer than this length (default: 15)
--color value specify color mode: auto, on/force, off (default: "auto")
--light-bg use black as the base foreground color (for terminals with light backgrounds)
--time-format value output time format, see https://golang.org/pkg/time/ for details (default: "Jan _2 15:04:05")
--ignore-interrupts, -i ignore interrupts
--message-fields value, -m value Custom JSON fields to search for the log message. (i.e. mssge, data.body.message) [$HUMANLOG_MESSAGE_FIELDS]
--time-fields value, -t value Custom JSON fields to search for the log time. (i.e. logtime, data.body.datetime) [$HUMANLOG_TIME_FIELDS]
--level-fields value, -l value Custom JSON fields to search for the log level. (i.e. somelevel, data.level) [$HUMANLOG_LEVEL_FIELDS]
--help, -h show help
--version, -v print the version
```

[l2met]: https://github.com/ryandotsmith/l2met

0 comments on commit 6593d94

Please sign in to comment.