s3log 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/s3log/cron.rb +1 -1
- data/lib/s3log/version.rb +1 -1
- data/templates/s3log/config.yml +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: b1e1cf5759832d0b418f7a87e503e22ad6abc6c2
|
4
|
+
data.tar.gz: d7e95c7249c91bfd6b868f7b35d13fb6cf50f2fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f995e5e3fab29e773f7480a52241e9f1a448c08e2ca4b06c63529235d4e1c5f8d558ba7351238554483ce945ed50699e26cc0ca82f7a4f483948b85fd04389de
|
7
|
+
data.tar.gz: 0817870abf853d6f3d80558514c3931b10d0a555c7df7380553ba5b8767a6b469785041278c6c016789ff14e6ffc837d73c09c86fb1564d8640ffcd8b966f431
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ On S3 buckets you can activate logging, but the options are quite limited. You c
|
|
9
9
|
|
10
10
|
S3log script is intended to transform this logging in a unified logfile wherever you need it, removing the logfiles from the logging bucket when they are downloaded.
|
11
11
|
|
12
|
-
It's designed to run on debian/ubuntu servers but should work on any linux server, and it also work on mac osx.
|
12
|
+
It's designed to run on debian/ubuntu servers but should work on any linux server, and it also work on mac osx. It works with ruby 1.9 and 2.0 (but not 1.8).
|
13
13
|
|
14
14
|
(work in progress, not ready for use yet).
|
15
15
|
|
@@ -35,7 +35,7 @@ First you need to edit the config.yml file. The purpose is to have one config fi
|
|
35
35
|
* logdir: the local dir where s3log logs are kept
|
36
36
|
* loglevel: the level of logging. use warn for only error display, info to record info on operations, debug to have much more details
|
37
37
|
* outputfile: the faile where the downloaded logs are going to be appended
|
38
|
-
* schedule: the cron formatted frequency of downloading the logs from bucket ie.
|
38
|
+
* schedule: the cron formatted frequency of downloading the logs from bucket ie. `*/5 * * * *`
|
39
39
|
|
40
40
|
When your configuration is ready, veridy that it works with
|
41
41
|
|
data/lib/s3log/cron.rb
CHANGED
@@ -13,7 +13,7 @@ module S3log
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def update
|
16
|
-
line = "#{@schedule} cd #{@path} &&
|
16
|
+
line = "#{@schedule} bash -l -c 'cd #{@path} && bundle exec s3log download -c #{@configfile} >> /dev/null 2>&1' # s3log_#{@jobname}\n"
|
17
17
|
tmp_cron_file = Tempfile.open('tmp_cron')
|
18
18
|
included = false
|
19
19
|
existing.each_line do |l|
|
data/lib/s3log/version.rb
CHANGED
data/templates/s3log/config.yml
CHANGED