loggregator_emitter 0.0.9.pre → 0.0.10.pre

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem "loggregator_messages", "~> 0.0.4.pre"
4
+
3
5
  # Specify your gem's dependencies in .gemspec
4
6
  gemspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- loggregator_emitter (0.0.9.pre)
4
+ loggregator_emitter (0.0.10.pre)
5
5
  loggregator_messages (~> 0.0.1.pre)
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  beefcake (0.3.7)
11
11
  diff-lcs (1.2.4)
12
- loggregator_messages (0.0.1.pre)
12
+ loggregator_messages (0.0.4.pre)
13
13
  beefcake (~> 0.3.7)
14
14
  rake (10.1.0)
15
15
  rspec (2.14.1)
@@ -27,5 +27,6 @@ PLATFORMS
27
27
  DEPENDENCIES
28
28
  bundler (~> 1.3)
29
29
  loggregator_emitter!
30
+ loggregator_messages (~> 0.0.4.pre)
30
31
  rake (~> 10.1.0)
31
32
  rspec (~> 2.14.1)
data/README.md CHANGED
@@ -1,3 +1,36 @@
1
1
  # Loggregator Emitter [![Build Status](https://travis-ci.org/cloudfoundry/loggregator_emitter.png?branch=master)](https://travis-ci.org/cloudfoundry/loggregator_emitter)
2
2
 
3
+ ### About
4
+
3
5
  This gem provides an API to emit messages to the loggregator agent from Ruby applications.
6
+
7
+ Create an emitter object with the loggregator router host and port, and source type of the emitter.
8
+
9
+ Call emit() or emit_error() on this emitter with the application GUID and the message string.
10
+
11
+ ### Valid source types are:
12
+
13
+ LogMessage::SourceType::CLOUD_CONTROLLER
14
+ LogMessage::SourceType::ROUTER
15
+ LogMessage::SourceType::UAA
16
+ LogMessage::SourceType::DEA
17
+ LogMessage::SourceType::WARDEN_CONTAINER
18
+
19
+ ### Setup
20
+
21
+ Add the loggregator_emitter gem to your gemfile.
22
+
23
+ gem "loggregator_emitter"
24
+
25
+ ### Sample Workflow
26
+
27
+ require "loggregator_emitter"
28
+
29
+ emitter = LoggregatorEmitter::Emitter.new("10.10.10.16:38452", LogMessage::SourceType::CLOUD_CONTROLLER)
30
+
31
+ app_guid = "a8977cb6-3365-4be1-907e-0c878b3a4c6b" # The GUID(UUID) for the user's application
32
+
33
+ emitter.emit(app_guid,message) # Emits messages with a message type of OUT
34
+
35
+ emitter.emit_error(app_guid,error_message) # Emits messages with a message type of ERR
36
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "loggregator_emitter"
5
- spec.version = '0.0.9.pre'
5
+ spec.version = '0.0.10.pre'
6
6
  spec.authors = ["Pivotal"]
7
7
  spec.email = ["cf-eng@pivotallabs.com"]
8
8
  spec.description = "Library to emit data to Loggregator"
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loggregator_emitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.pre
5
- prerelease: 6
4
+ version: 0.0.10.pre
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Pivotal
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-28 00:00:00.000000000 Z
12
+ date: 2013-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: loggregator_messages