https://github.com/caplin/zaplog
Command Line Log Tool
https://github.com/caplin/zaplog
Last synced: 3 months ago
JSON representation
Command Line Log Tool
- Host: GitHub
- URL: https://github.com/caplin/zaplog
- Owner: caplin
- License: mit
- Created: 2013-03-19T14:39:06.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-13T09:09:11.000Z (about 12 years ago)
- Last Synced: 2024-12-28T19:52:03.392Z (5 months ago)
- Language: Java
- Size: 171 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#ZapLog
======
Command Line Log Tool written in Java.##Usage
=====
Parameter | Description
--- | ---
`-a, -audit` | includes report from plugins
`-c, -chronological` | sort log lines in chronological order
`-f, -format` | formats the log lines
`-ln, -linenumbers` | includes line numbers
`-nf, -nofilenames` | doesn`t include filenames in output
`-nh, -noheader` | no header in output
`-nologoutput` | output only includes header
`-ns, -nostrings` | filter out specific strings
`-o, -output` | output to file
`-p, -pretty` | (Linux) enables colors for different log files
`-r` | recursively finds logs in folders
`regex` | filter log lines by regex
`s` | filter log lines by strings
`tail` | (Experiemental) tails the output##Examples
========
####Basic
```
./zaplog var/mylog1.log logs/mylog2.log
```
####Chronological Ordering
```
./zaplog var/* -c
```
####File Output
```
./zaplog var/* -c -f -o=result.txt
```
####Pretty Print (Linux)
```
./zaplog var/mylog1.log var/mylog2.log -c -f -p | less -R
```
####Regex/String Filtering
```
./zaplog var/* -s=user1 -ns=WATCHLIST -regex=.*
```####Only Show Log Text
```
./zaplog var/* -nf -nh -nt
```
####Grep with Colors (Linux)
```
./zaplog var/* -f -c | grep --color=always user | less -R
```####Print Output from Plugins
```
./zaplog var/* -a
```