apache_log_tail 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/apache_log_tail.rb +3 -3
- metadata +3 -3
data/lib/apache_log_tail.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
# Facilitates reading the most recent additions to a log file.
|
3
3
|
#
|
4
4
|
# Example:
|
5
|
-
# tail =
|
6
|
-
# tail.state_store.path_to_file = "/tmp/my-state.
|
5
|
+
# tail = ApacheLogTail.new "/var/log/apache2/access.log"
|
6
|
+
# tail.state_store.path_to_file = "/tmp/my-state.yml" # Optional: there is a default path
|
7
7
|
# tail.each_new_line {|line| puts line }
|
8
8
|
#
|
9
9
|
# ## A custom StateStore
|
@@ -106,7 +106,7 @@ end
|
|
106
106
|
# original except for a `.1` suffix and as long as the file hasn't been rotated
|
107
107
|
# twice between invocations of #each_new_line).
|
108
108
|
#
|
109
|
-
# Note that this class does
|
109
|
+
# Note that this class does not parse Apache log entries, only knows how Apache
|
110
110
|
# log files are rotated on Debian. I have enjoyed using the `apachelogregex`
|
111
111
|
# gem for parsing.
|
112
112
|
#
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apache_log_tail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Neil Stockbridge
|