auto_truncated_logger 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,15 @@
|
|
1
|
-
require "auto_truncated_logger/version"
|
2
1
|
require 'fileutils'
|
3
2
|
require 'logger'
|
4
3
|
|
5
4
|
class AutoTruncatedLogger < Logger
|
5
|
+
VERSION = "0.0.2"
|
6
|
+
|
6
7
|
def initialize(device, shift_size = 1048576)
|
7
8
|
super(device, 1, shift_size)
|
8
9
|
end
|
9
10
|
|
10
|
-
def add(
|
11
|
-
super(
|
11
|
+
def add(*args)
|
12
|
+
super(*args)
|
12
13
|
truncate_old_file
|
13
14
|
end
|
14
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_truncated_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: logger of auto truncated old file.
|
15
15
|
email:
|
@@ -25,7 +25,6 @@ files:
|
|
25
25
|
- Rakefile
|
26
26
|
- auto_truncated_logger.gemspec
|
27
27
|
- lib/auto_truncated_logger.rb
|
28
|
-
- lib/auto_truncated_logger/version.rb
|
29
28
|
homepage: https://github.com/hsbt/auto_truncated_logger
|
30
29
|
licenses: []
|
31
30
|
post_install_message:
|