logglier 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTE0NDVlZDA0Y2MxNTdmMmVhZmZhYzA1MGNkNWMwMjk2YjRhYjA0MQ==
5
- data.tar.gz: !binary |-
6
- NjM5NGY2ZTY3ZWFhZmNlODRkNjkzNmI3NzI0OWZlZmMxYTEzOTY3Nw==
2
+ SHA1:
3
+ metadata.gz: 636d4fadf29a89bd07f05e228fc38c99eb31eb46
4
+ data.tar.gz: 56065cd359d6ed166e8834821a7ee20cad0cd338
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YWMzZjUyZmMyNTRmNDMxNDNiNjg4ZjgyNTI0YzY5Y2JiZDgzZDlhOWQyOWQy
10
- YTQwODQyNDE3NTkzNzEzNTFlODQwYTI5MTQyZDA1YWVkMjUwNjRmMjAyMzk5
11
- YzJjOTFhNjI3MDE0ODk0YmU1YWM2ZTM0MjM4YzUyOGUwZjFmMTY=
12
- data.tar.gz: !binary |-
13
- ODEyMDQ1N2ZkYmMzMzdlNmYyYjZmNWQxYjk5YjI4MDgxZmFiMzZjYzdlOWE4
14
- MDRhNWRjYTNmZmJlZTI0NDgxMDc0OWZhZmIxNjgwMjA5ZTIwMDA0MzZkZDNj
15
- NjQzNTEzNWIyMTA1NWUxN2MwMGQ1NTI3MjA2MzYxMmMxYjA2NTI=
6
+ metadata.gz: 6815137009e1a06bc6cd2b4c2435f25c07316a5b1d76bc5438e85bc42cba10207ec12d1361ebcc8a7e3904ddb285c3d9f978a7c2b5da1b9b86b8e3ef8acecace
7
+ data.tar.gz: 836daf1841f5c35248213cca1bb78ba02c55c1e3dc1267d05441a3911a72b392bfbbcf1a697c65110ae30a6a2a33c9e3560dc06ccce51d0b82855baaebebf6fe
data/README.md CHANGED
@@ -2,7 +2,7 @@ Overview
2
2
  --------
3
3
  [![Build Status](https://travis-ci.org/freeformz/logglier.png)](https://travis-ci.org/freeformz/logglier)
4
4
 
5
- Send logged messages to Loggly using either the HTTP API or Syslog/UDP.
5
+ Send logged messages to Loggly using either the HTTP API or Syslog/UDP. Check out Loggly's [Ruby logging documentation](https://www.loggly.com/docs/ruby-logs/) to learn more.
6
6
 
7
7
  Can be used in place of Ruby's Logger
8
8
  (<http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc/>)
@@ -28,18 +28,28 @@ config/environments/production.rb
28
28
  end
29
29
 
30
30
 
31
+ ### With Rails 4
32
+
33
+ config/initializers/loggly.rb
34
+
35
+ loggly = Logglier.new('https://logs-01.loggly.com/inputs/[your-customer-token]/tag/rails', threaded: true, format: :json)
36
+ Rails.logger.extend(ActiveSupport::Logger.broadcast(loggly))
37
+
38
+ ^ Submitted by: https://github.com/cap10morgan
39
+
40
+
31
41
  Input URLs
32
42
  -------
33
43
 
34
44
  ### HTTP Inputs
35
- Logglier.new('https://logs.loggly.com/inputs/<id>')
45
+ Logglier.new('https://logs-01.loggly.com/inputs/[your-customer-token]')
36
46
 
37
47
  The id is provided by loggly, look at the input's details page To make
38
48
  sure the http client doesn't block too long read_timeout and
39
49
  open_timeout are set to 2 seconds by default. This can be overridden
40
50
  like so:
41
51
 
42
- Logglier.new('https://logs.loggly.com/inputs/<id>',
52
+ Logglier.new('https://logs-01.loggly.com/inputs/[your-customer-token]',
43
53
  :read_timeout => <#>,
44
54
  :open_timeout => <#> )
45
55
 
@@ -53,7 +63,7 @@ log message delivery.
53
63
 
54
64
  Example:
55
65
 
56
- Logglier.new('https://logs.loggly.com/inputs/<id>',
66
+ Logglier.new('https://logs-01.loggly.com/inputs/[your-customer-token]',
57
67
  :threaded => true)
58
68
 
59
69
  #### JSON Formatting
@@ -64,7 +74,7 @@ threaded delivery.
64
74
 
65
75
  Example:
66
76
 
67
- Logglier.new('https://logs.loggly.com/inputs/<id>',
77
+ Logglier.new('https://logs-01.loggly.com/inputs/[your-customer-token]',
68
78
  :format => :json)
69
79
 
70
80
  Logglier uses [MultiJson](https://github.com/intridea/multi_json) to delegate the choice of JSON libraries to you, but I recommend using
@@ -1,3 +1,3 @@
1
1
  module Logglier
2
- VERSION = '0.2.11'
2
+ VERSION = '0.2.12'
3
3
  end
data/logglier.gemspec CHANGED
@@ -8,6 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.summary = 'Loggly "plugin" for Logger'
9
9
  s.description = 'Logger => Loggly'
10
10
 
11
+ s.license = "http://opensource.org/licenses/MIT"
12
+
11
13
  s.authors = ["Edward Muller (aka freeformz)"]
12
14
  s.email = 'edwardam@interlix.com'
13
15
  s.homepage = 'http://github.com/freeformz/logglier'
@@ -21,9 +23,9 @@ Gem::Specification.new do |s|
21
23
  s.required_ruby_version = '>= 1.8.6'
22
24
  s.required_rubygems_version = '>= 1.3.6'
23
25
 
24
- s.add_development_dependency 'rake'
25
- s.add_development_dependency 'rspec', '~> 2.11.0'
26
- s.add_development_dependency 'multi_json'
26
+ s.add_dependency 'multi_json', '~> 0'
27
+ s.add_development_dependency 'rake', '~> 0'
28
+ s.add_development_dependency 'rspec', '~> 2.11', '>= 2.11.0'
27
29
  end
28
30
 
29
31
 
metadata CHANGED
@@ -1,75 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logglier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Muller (aka freeformz)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-01 00:00:00.000000000 Z
11
+ date: 2015-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: multi_json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
- type: :development
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec
28
+ name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.11.0
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.11.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: multi_json
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '2.11'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 2.11.0
48
51
  type: :development
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - ! '>='
55
+ - - "~>"
53
56
  - !ruby/object:Gem::Version
54
- version: '0'
57
+ version: '2.11'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 2.11.0
55
61
  description: Logger => Loggly
56
62
  email: edwardam@interlix.com
57
63
  executables: []
58
64
  extensions: []
59
65
  extra_rdoc_files: []
60
66
  files:
61
- - README.md
62
67
  - Gemfile
63
68
  - LICENSE
64
- - logglier.gemspec
69
+ - README.md
65
70
  - Rakefile
71
+ - lib/logglier.rb
72
+ - lib/logglier/client.rb
73
+ - lib/logglier/client/http.rb
66
74
  - lib/logglier/client/http/sync.rb
67
75
  - lib/logglier/client/http/threaded.rb
68
- - lib/logglier/client/http.rb
69
76
  - lib/logglier/client/syslog.rb
70
- - lib/logglier/client.rb
71
77
  - lib/logglier/version.rb
72
- - lib/logglier.rb
78
+ - logglier.gemspec
73
79
  - spec/client/syslog_spec.rb
74
80
  - spec/client_spec.rb
75
81
  - spec/http_spec.rb
@@ -77,7 +83,8 @@ files:
77
83
  - spec/spec_helper.rb
78
84
  - spec/threaded_spec.rb
79
85
  homepage: http://github.com/freeformz/logglier
80
- licenses: []
86
+ licenses:
87
+ - http://opensource.org/licenses/MIT
81
88
  metadata: {}
82
89
  post_install_message:
83
90
  rdoc_options: []
@@ -85,17 +92,17 @@ require_paths:
85
92
  - lib
86
93
  required_ruby_version: !ruby/object:Gem::Requirement
87
94
  requirements:
88
- - - ! '>='
95
+ - - ">="
89
96
  - !ruby/object:Gem::Version
90
97
  version: 1.8.6
91
98
  required_rubygems_version: !ruby/object:Gem::Requirement
92
99
  requirements:
93
- - - ! '>='
100
+ - - ">="
94
101
  - !ruby/object:Gem::Version
95
102
  version: 1.3.6
96
103
  requirements: []
97
104
  rubyforge_project: logglier
98
- rubygems_version: 2.1.2
105
+ rubygems_version: 2.2.2
99
106
  signing_key:
100
107
  specification_version: 4
101
108
  summary: Loggly "plugin" for Logger