# -*- encoding: utf-8 -*- # stub: logging-remote-syslog 0.0.5 ruby lib Gem::Specification.new do |s| s.name = "logging-remote-syslog".freeze s.version = "0.0.5".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Amy Sutedja".freeze, "Paul Morton".freeze] s.date = "2013-08-14" s.description = "Remote syslog appender for Logging".freeze s.email = ["asutedja@biaprotect.com".freeze, "pmorton@biaprotect.com".freeze] s.files = [".gitignore".freeze, ".rspec".freeze, ".travis.yml".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "lib/logging/VERSION".freeze, "lib/logging/appenders/remote-syslog.rb".freeze, "lib/logging/remote-syslog.rb".freeze, "logging-remote-syslog.gemspec".freeze, "spec/logging/appenders/remote_syslog_spec.rb".freeze, "spec/spec_helper.rb".freeze, "spec/support/rr.rb".freeze] s.homepage = "https://github.com/BIAINC/logging-remote-syslog".freeze s.licenses = ["MIT".freeze] s.rubygems_version = "3.5.10".freeze s.summary = "# logging/remote-syslog logging/remote-syslog is a remote syslog appender for use with the [Logging](https://github.com/TwP/logging) library. ![Travis CI Status](https://secure.travis-ci.org/BIAINC/logging-remote-syslog.png) ## Installation Add this line to your application's Gemfile: ``` gem 'logging-remote-syslog', :require => 'logging/remote-syslog' ``` And then execute: ``` $ bundle ``` Or install it yourself as: ``` $ gem install logging-remote-syslog ``` ## Options :ident - [String] Identity of the sender, such as a hostname or app ID :syslog_server [String] - Syslog server hostname or IP (default: `127.0.0.1`) :port [Integer] - Syslog server port (default: `514`) :strip_colors [True|False] - Some loggers like shell colors, should we remove them? (default: `True`) :facility [String] - A syslog facility name (default: `user`) :modifier [Method] - A callback for altering the original message (takes original message; returns modified one) ## Usage ``` require 'logging' require 'logging/remote-syslog' logger = Logging.logger['MyApp'] logger.add_appenders( Logging.appenders.remote_syslog(ident, syslog_server: syslog_host, port: syslog_port) ) logger.level = :info logger.info 'MyApp Message' ``` Note that as shown above, a name is required as the first argument when adding the appender. (If an `ident:` options hash key is also provided, its value will be used as the sender instead of the name.) ## Example This registers a new appender named after the system's hostname. It will log to `logs.example.com:1111`. ``` require 'socket' logger = Logging.logger['MyApp'] logger.add_appenders( Logging.appenders.remote_syslog(Socket.gethostname, syslog_server: 'logs.example.com', port: 1111) ) ``` ## Tests ``` rake ``` ## Change Log 0.0.3 - Strip ANSI shell codes by default ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Write code and add _tests_ 4. Commit your changes (`git commit -am 'Added some feature'`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create new Pull Request".freeze s.test_files = ["spec/logging/appenders/remote_syslog_spec.rb".freeze, "spec/spec_helper.rb".freeze, "spec/support/rr.rb".freeze] s.specification_version = 3 s.add_runtime_dependency(%q.freeze, [">= 1.6.1".freeze]) s.add_runtime_dependency(%q.freeze, [">= 1.0.3".freeze]) s.add_development_dependency(%q.freeze, [">= 2.10.0".freeze]) s.add_development_dependency(%q.freeze, [">= 0.9.2".freeze]) s.add_development_dependency(%q.freeze, [">= 1.0.4".freeze]) end