simple_cloud_logging 1.1.27 → 1.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dummylogger.rb +27 -0
- data/lib/remotelogger.rb +5 -5
- data/lib/simple_cloud_logging.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0df5d33de95e23c80e00e72d4acd811d6ca0ca8
|
4
|
+
data.tar.gz: 06ad72e5b4701c32fe2e2f2cae358f078325b237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41dab00be69b0ab2f207ea3abe87e090b90fbca124e247c07ff172fe25097d04ec2c35dc4ab41df04c85275e9457e24c070c975ec844821e45fe70545302ebe9
|
7
|
+
data.tar.gz: 199e70375b234b1c59836530bdb297d088c782c084d9be00798dc2bd408d9501decfc1618b707f693bfeb8b47f0a6b940d7f02fc6f14ea08b12b6509c8dcf0eb
|
data/lib/dummylogger.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
module BlackStack
|
2
|
+
require_relative './baselogger'
|
3
|
+
class DummyLogger < BlackStack::BaseLogger
|
4
|
+
|
5
|
+
# call the parent class to set the attributes
|
6
|
+
# call the save method to store the new attributes into the data file
|
7
|
+
def reset()
|
8
|
+
super
|
9
|
+
end
|
10
|
+
|
11
|
+
def log(s, datetime=nil)
|
12
|
+
end
|
13
|
+
|
14
|
+
#
|
15
|
+
def logs(s, datetime=nil)
|
16
|
+
end # def logs
|
17
|
+
|
18
|
+
#
|
19
|
+
def logf(s, datetime=nil)
|
20
|
+
end # def logf
|
21
|
+
|
22
|
+
#
|
23
|
+
def release()
|
24
|
+
end
|
25
|
+
|
26
|
+
end # class LocalLogger
|
27
|
+
end # module BlackStack
|
data/lib/remotelogger.rb
CHANGED
@@ -17,7 +17,7 @@ module BlackStack
|
|
17
17
|
def reset()
|
18
18
|
super
|
19
19
|
=begin
|
20
|
-
url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.
|
20
|
+
url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/reset.json"
|
21
21
|
res = BlackStack::Netting::api_call(url, {
|
22
22
|
'api_key' => self.api_key,
|
23
23
|
'filename' => self.filename,
|
@@ -29,7 +29,7 @@ module BlackStack
|
|
29
29
|
def log(s, datetime=nil)
|
30
30
|
ltext = super(s, datetime)
|
31
31
|
=begin
|
32
|
-
url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.
|
32
|
+
url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
|
33
33
|
res = BlackStack::Netting::api_call(url, {
|
34
34
|
'api_key' => self.api_key,
|
35
35
|
'filename' => self.filename,
|
@@ -44,7 +44,7 @@ module BlackStack
|
|
44
44
|
def logs(s, datetime=nil)
|
45
45
|
ltext = super(s, datetime)
|
46
46
|
=begin
|
47
|
-
url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.
|
47
|
+
url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
|
48
48
|
res = BlackStack::Netting::api_call(url, {
|
49
49
|
'api_key' => self.api_key,
|
50
50
|
'filename' => self.filename,
|
@@ -59,7 +59,7 @@ module BlackStack
|
|
59
59
|
def logf(s, datetime=nil)
|
60
60
|
ltext = super(s, datetime)
|
61
61
|
=begin
|
62
|
-
url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.
|
62
|
+
url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
|
63
63
|
res = BlackStack::Netting::api_call(url, {
|
64
64
|
'api_key' => self.api_key,
|
65
65
|
'filename' => self.filename,
|
@@ -73,7 +73,7 @@ module BlackStack
|
|
73
73
|
|
74
74
|
def release()
|
75
75
|
=begin
|
76
|
-
url = "#{self.api_url}:#{self.api_port.to_s}/api1.
|
76
|
+
url = "#{self.api_url}:#{self.api_port.to_s}/api1.3/threads/release.json"
|
77
77
|
res = BlackStack::Netting::api_call(url, {
|
78
78
|
'api_key' => self.api_key,
|
79
79
|
'filename' => self.filename,
|
data/lib/simple_cloud_logging.rb
CHANGED
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.1.
|
4
|
+
version: 1.1.28
|
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:
|
11
|
+
date: 2022-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blackstack_commons
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- examples/example03.rb
|
42
42
|
- examples/example04.rb
|
43
43
|
- lib/baselogger.rb
|
44
|
+
- lib/dummylogger.rb
|
44
45
|
- lib/locallogger.rb
|
45
46
|
- lib/remotelogger.rb
|
46
47
|
- lib/simple_cloud_logging.rb
|