oohlalog 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTcyNGQ3ZDI4OTUyODllZWIxM2IyODg3YzUxNzUyNGRmYWIxZThmYg==
5
+ data.tar.gz: !binary |-
6
+ YTM0OWY1OTE4NzY2YWZjMzcyYmU5NmM4YWMwYjgyM2E2OTJkZDdmNA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ M2ZjYzYzYjU1Mjk5MThlOGE4M2JiMGE2NzExZDM1NGQ5NGU4ODRiYzBiZDU3
10
+ ZWVhZjkyOGU0OGNkMzI5MThiMWMyNDk3NDM4MjMxZWZjZjZkZDc3ZGUwYWVl
11
+ NDkyM2U4MzNlOTIwZmE5ZGFmZTg1MDIwYzZlODk3NzYwYmQ5Y2E=
12
+ data.tar.gz: !binary |-
13
+ Njk3MjY2ZjRmZDlhMTZjNWYzMGYyOWJhYWIxZThkMTJkYWE4MzM3Y2FlYzAw
14
+ YjNhZjFkNGYzOWViZjJmZWUyNmZjZTcyYTQ1Njg0NjZhMTA0YTJiNjg5NWE1
15
+ MTAzNzZlNmY0MzQ5MmRlNjBmNjgwOWM3MWY1YTJjYmQ4YjllZGU=
data/README.md CHANGED
@@ -26,6 +26,12 @@ This gem automatically ties into the rails standard BufferedLogger. Set your con
26
26
  Oohlalog.api_key = "YOUR API KEY HERE"
27
27
  ```
28
28
 
29
+ **NOTE:** If you wish to not inject the oohlalog logger into the standard rails logger, you may do so by adding the following to your `application.rb` file.
30
+
31
+ ```ruby
32
+ Oohlalog.inject_rails = false
33
+ ```
34
+
29
35
  ### Standard Ruby
30
36
 
31
37
  Oohlalog is designed as an independent logging class. You can use it this way or tie it into the main ruby logger.
@@ -36,7 +42,7 @@ To run an independent instance simply create a new log object
36
42
  require 'oohlalog'
37
43
  Oohlalog.api_key = "YOUR API KEY HERE"
38
44
 
39
- logger = Oohlalog::Logger.new(100, Oohlalog::Logger.DEBUG) #First argument is the buffer size, second is log level
45
+ logger = Oohlalog::Logger.new(100, Oohlalog::Logger::DEBUG) #First argument is the buffer size, second is log level
40
46
 
41
47
  logger.warn("Warning Log")
42
48
  logger.info("Info log")
@@ -32,6 +32,7 @@ class Oohlalog::Logger
32
32
  if severity >= self.level
33
33
  @buffer << {level: severity_string(severity), message: message.gsub(/\e\[(\d+)m/, '') , category: category, details: details, timestamp:Time.now.to_i * 1000, hostName: Socket.gethostname}
34
34
  check_buffer_size
35
+ return
35
36
  end
36
37
  end
37
38
 
@@ -1,3 +1,3 @@
1
1
  module Oohlalog
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/oohlalog.rb CHANGED
@@ -5,7 +5,7 @@ require 'oohlalog/counter'
5
5
  require 'oohlalog/railtie'
6
6
 
7
7
  module Oohlalog
8
- @host = "oohlalog.com"
8
+ @host = "api.oohlalog.com"
9
9
  @port = 80
10
10
  @path = "/api/logging/save.json"
11
11
  @api_key = nil
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oohlalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Estes
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-25 00:00:00.000000000 Z
11
+ date: 2013-11-08 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Rails/Ruby Logger Tie-in for OohLaLog.com
15
14
  email:
@@ -32,27 +31,26 @@ files:
32
31
  - oohlalog.gemspec
33
32
  homepage: http://www.oohlalog.com
34
33
  licenses: []
34
+ metadata: {}
35
35
  post_install_message:
36
36
  rdoc_options: []
37
37
  require_paths:
38
38
  - lib
39
39
  required_ruby_version: !ruby/object:Gem::Requirement
40
- none: false
41
40
  requirements:
42
41
  - - ! '>='
43
42
  - !ruby/object:Gem::Version
44
43
  version: '0'
45
44
  required_rubygems_version: !ruby/object:Gem::Requirement
46
- none: false
47
45
  requirements:
48
46
  - - ! '>='
49
47
  - !ruby/object:Gem::Version
50
48
  version: '0'
51
49
  requirements: []
52
50
  rubyforge_project:
53
- rubygems_version: 1.8.25
51
+ rubygems_version: 2.1.10
54
52
  signing_key:
55
- specification_version: 3
53
+ specification_version: 4
56
54
  summary: The OohLaLog service allows for cloud logging from multiple servers. This
57
55
  easy tie-in makes work for the developer minimal and provides advanced functionality,
58
56
  such as counters, search, live log tail, alerts, and more.