log4ever 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/gem/log4ever-0.0.3.gem +0 -0
- data/lib/log4r/evernote.rb +2 -2
- data/lib/log4r/outputter/evernoteoutputter.rb +3 -3
- data/log4ever.gemspec +2 -1
- metadata +15 -3
data/README.md
CHANGED
Binary file
|
data/lib/log4r/evernote.rb
CHANGED
@@ -15,7 +15,7 @@ require "Evernote/EDAM/note_store"
|
|
15
15
|
require "Evernote/EDAM/limits_constants.rb"
|
16
16
|
|
17
17
|
module Log4ever
|
18
|
-
VERSION = '0.0.
|
18
|
+
VERSION = '0.0.4'
|
19
19
|
class TypeError < StandardError; end
|
20
20
|
module ShiftAge
|
21
21
|
DAILY = 1
|
@@ -108,7 +108,7 @@ module Log4r
|
|
108
108
|
break
|
109
109
|
end
|
110
110
|
end
|
111
|
-
|
111
|
+
@notebook
|
112
112
|
end
|
113
113
|
|
114
114
|
# create notebook
|
@@ -76,12 +76,12 @@ module Log4r
|
|
76
76
|
@note.size == 0 || (@maxsize > 0 && @note.size >= @maxsize)
|
77
77
|
end
|
78
78
|
|
79
|
-
|
79
|
+
# whether or not to rotate rolling
|
80
80
|
def time_requires_roll?
|
81
81
|
!@endTime.nil? && Time.now.to_i >= @endTime
|
82
82
|
end
|
83
83
|
|
84
|
-
|
84
|
+
# max amount of log in note
|
85
85
|
def set_maxsize(options)
|
86
86
|
if options.has_key?(:maxsize) || options.has_key?('maxsize')
|
87
87
|
maxsize = options[:maxsize] || options['maxsize']
|
@@ -109,7 +109,7 @@ module Log4r
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
-
|
112
|
+
# rolling interval
|
113
113
|
def set_shift_age(options)
|
114
114
|
if options.has_key?(:shift_age) || options.has_key?('shift_age')
|
115
115
|
_shift_age = (options[:shift_age] or options['shift_age']).to_i
|
data/log4ever.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log4ever
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,9 +9,20 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-20 00:00:00.000000000 +09:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: log4r
|
17
|
+
requirement: &2153493140 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.1.10
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2153493140
|
15
26
|
description: log4ever is simple logger for evernote. It is available as an extension
|
16
27
|
of log4r.
|
17
28
|
email:
|
@@ -30,6 +41,7 @@ files:
|
|
30
41
|
- config/log4r.xml
|
31
42
|
- gem/log4ever-0.0.1.gem
|
32
43
|
- gem/log4ever-0.0.2.gem
|
44
|
+
- gem/log4ever-0.0.3.gem
|
33
45
|
- lib/log4r/evernote.rb
|
34
46
|
- lib/log4r/evernote/lib/Evernote/EDAM/errors_constants.rb
|
35
47
|
- lib/log4r/evernote/lib/Evernote/EDAM/errors_types.rb
|