simple_cloud_logging 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f33fe774542d11213b95c2092ee13ac688e1011ca65e0aa240993109a7294ff8
4
- data.tar.gz: 539dd9ced7250c36873db76eb86577053a7d43d9e66e74eb18e32ac4a293ecc1
3
+ metadata.gz: 45d0caad0577a87145e418ef7ee49fb80efd677340ccf1bf91ecca0813a1b316
4
+ data.tar.gz: d912ebe72beb36194ee75a03d705e47a3383490ff35a0550a04b4a8065e93eb4
5
5
  SHA512:
6
- metadata.gz: 637d485c0c4dc8a3d478e736907ceed432e9a95b0d01962ae1fd1da029072ab120985d2999013955a81d22968a3c693960ad19c31d7417c7e4a22eb15ba30bd3
7
- data.tar.gz: 8e69eb2a2c92b918cfa527da8a49e84b50963fa51eb49a37a09c5aca5504fab9dbe61f86a6b17c876f404b525f42716cb201919886626b8560250ad691c15a05
6
+ metadata.gz: 575e785d03b6dcd799b91d08de46fa2029cdb9b5d1b2416a50b634330f379adacb8f7a0f93ef8d015f06b9cbdb84f13def19c03f5d709fefaf9216389da1c9b4
7
+ data.tar.gz: edcb4ebf3bd619c1ec14bf563c02ea9e6a70d8105179c00b4b11dd7724c4008f6bf61f45636b4da8d332aafcc8620137d1618f94cd5132fcb164ed42a31d36f9
data/lib/dummylogger.rb CHANGED
@@ -18,9 +18,5 @@ module BlackStack
18
18
  def logf(s, datetime=nil)
19
19
  end # def logf
20
20
 
21
- #
22
- def release()
23
- end
24
-
25
21
  end # class LocalLogger
26
22
  end # module BlackStack
data/lib/locallogger.rb CHANGED
@@ -5,7 +5,6 @@ module BlackStack
5
5
  # call the save method to store the new attributes into the data file
6
6
  def reset()
7
7
  super
8
- BlackStack::LocalLoggerFactory::save(self.filename, self)
9
8
  end
10
9
 
11
10
  # store the min allowed bytes in the variable min
@@ -55,10 +54,5 @@ module BlackStack
55
54
  ltext
56
55
  end # def logf
57
56
 
58
- #
59
- def release()
60
- BlackStack::LocalLoggerFactory.release(self.filename)
61
- end
62
-
63
57
  end # class LocalLogger
64
58
  end # module BlackStack
@@ -4,33 +4,3 @@ require 'blackstack-core'
4
4
  require_relative './baselogger'
5
5
  require_relative './dummylogger'
6
6
  require_relative './locallogger'
7
-
8
- module BlackStack
9
- class LocalLoggerFactory
10
- #
11
- def self.create(filename)
12
- data_filename = "#{filename}.data"
13
- ret = BlackStack::LocalLogger.new(filename)
14
- if File.exist?(data_filename)
15
- f = File.open(data_filename,"r")
16
- data = f.read.split(/,/)
17
- ret.nest_level = data[0].to_i
18
- ret.number_of_lines_in_current_level = data[1].to_i
19
- ret.current_nest_level = data[2].to_i
20
- f.close
21
- end
22
- ret
23
- end
24
-
25
- #
26
- def self.save(filename, locallogger)
27
- data_filename = "#{filename}.data"
28
- ret = BlackStack::LocalLogger.new(filename)
29
- f = File.open(data_filename,"w")
30
- f.write "#{locallogger.nest_level.to_s},#{locallogger.number_of_lines_in_current_level.to_s},#{locallogger.current_nest_level.to_s}"
31
- f.close
32
- end
33
-
34
- end # class LocalLoggerFactory
35
-
36
- end # module BlackStack
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_cloud_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-26 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize