logging-couchdb 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +1 -1
- data/lib/logging/couch_db_layout.rb +2 -2
- metadata +1 -1
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -23,7 +23,7 @@ PROJ.name = 'logging-couchdb'
|
|
23
23
|
PROJ.authors = 'Tim Pease'
|
24
24
|
PROJ.email = 'tim.pease@gmail.com'
|
25
25
|
PROJ.url = 'http://logging.rubyforge.org/logging-couchdb'
|
26
|
-
PROJ.version = '1.0.
|
26
|
+
PROJ.version = '1.0.2'
|
27
27
|
PROJ.rubyforge.name = 'logging'
|
28
28
|
PROJ.exclude << 'logging-couchdb.gemspec'
|
29
29
|
PROJ.readme_file = 'README.rdoc'
|
@@ -99,9 +99,9 @@ module Logging::Layouts
|
|
99
99
|
class << self
|
100
100
|
undef :timestamp
|
101
101
|
def timestamp( time = nil )
|
102
|
-
@@discriminator = (@@discriminator + 1) %
|
102
|
+
@@discriminator = (@@discriminator + 1) % 1000
|
103
103
|
utc = (time || Time.now).utc
|
104
|
-
utc.strftime(TIME_FMT) % @@discriminator
|
104
|
+
utc.strftime(TIME_FMT) % (utc.usec + @@discriminator)
|
105
105
|
end
|
106
106
|
end
|
107
107
|
end
|