log_analyzer 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -3
- data/bin/log_analyzer +2 -7
- data/lib/log_analyzer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3949a52059cfee648c1748f24c7568a188c3b7ae
|
4
|
+
data.tar.gz: c0bc7095f2140417b1e61ff35421eed7c2c378d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02afd22979e2959f38520ef65a03cca3f46e26ccc3317d32bca99e591acab8efc9d23ca28ab02ce6cc09a119c759a90e4dce0d7a8df595cd94e75510926371ce
|
7
|
+
data.tar.gz: ee999e789c0cc89ee027f2c7a81e8ccb8d6419a16ccaaffe43c453bb23a9a5239d8a87bb9a2425a0482b7564bbe45f7bd91f6d2aaccb1f665208e507f8e00f54
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -8,6 +8,8 @@ See how fast is rendering in your Ruby on Rails app. Based on information from l
|
|
8
8
|
|
9
9
|
[![Sample](https://raw.githubusercontent.com/igorkasyanchuk/log_analyzer/master/docs/screenshot.png)](https://raw.githubusercontent.com/igorkasyanchuk/log_analyzer/master/docs/screenshot.png)
|
10
10
|
|
11
|
+
[![Reports](https://raw.githubusercontent.com/igorkasyanchuk/log_analyzer/master/docs/reports.png)](https://raw.githubusercontent.com/igorkasyanchuk/log_analyzer/master/docs/reports.png)
|
12
|
+
|
11
13
|
You can see columns:
|
12
14
|
|
13
15
|
* Type - type of file (partial or view = P or V)
|
@@ -38,6 +40,7 @@ Or install it yourself as:
|
|
38
40
|
## Usage
|
39
41
|
|
40
42
|
After installation run in console command `log_analyzer -f log/development.log`. You can change the file or sorting (time, count, name).
|
43
|
+
|
41
44
|
Samples:
|
42
45
|
|
43
46
|
* `log_analyzer log/development.log -s count`
|
@@ -49,9 +52,9 @@ Samples:
|
|
49
52
|
* `log_analyzer -file log/production.log -sort count`
|
50
53
|
* `log_analyzer -file log/production.log -sort count -filter view`
|
51
54
|
* `log_analyzer -file log/production.log -sort count -filter partial`
|
52
|
-
* `log_analyzer -file log/production.log -sort time -filter
|
53
|
-
* `log_analyzer
|
54
|
-
* `log_analyzer log/production.log -
|
55
|
+
* `log_analyzer -file log/production.log -sort time -filter p`
|
56
|
+
* `log_analyzer development.log -csv -s time -f p`
|
57
|
+
* `log_analyzer log/production.log -pdf --short`
|
55
58
|
* `log_analyzer -file log/production.log --short`
|
56
59
|
* `log_analyzer --help`
|
57
60
|
|
data/bin/log_analyzer
CHANGED
@@ -23,7 +23,7 @@ parser = OptionParser.new do |opts|
|
|
23
23
|
options[:filter] = v
|
24
24
|
end
|
25
25
|
|
26
|
-
opts.on("
|
26
|
+
opts.on("--short", "Shrink long paths") do |v|
|
27
27
|
options[:short] = v
|
28
28
|
end
|
29
29
|
|
@@ -41,11 +41,6 @@ parser = OptionParser.new do |opts|
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
# hack, because "log_analyzer production.log --short" not works but "-sp" works
|
45
|
-
if i = ARGV.index("--short")
|
46
|
-
ARGV[i] = "-sp"
|
47
|
-
end
|
48
|
-
|
49
44
|
parser.parse!
|
50
45
|
|
51
46
|
# Define default params
|
@@ -59,7 +54,7 @@ LogAnalyzer::Configuration.configure do |config|
|
|
59
54
|
config.filter = options[:filter]
|
60
55
|
end
|
61
56
|
|
62
|
-
#
|
57
|
+
#puts "Running with: #{options.inspect}".green # debug
|
63
58
|
|
64
59
|
if options[:file] && options[:sort]
|
65
60
|
analyzer = LogAnalyzer.analyze(filename: options[:file])
|
data/lib/log_analyzer/version.rb
CHANGED