module PrySyslog
Parent namespace of the pry-syslog gem.
Constants
- VERSION
The current version of
PrySyslog
Public Class Methods
announce_logging()
click to toggle source
# File lib/pry-syslog.rb, line 7 def self.announce_logging puts 'Please note: This interactive session has PrySyslog enabled. All' puts 'valid Ruby entered here will be sent to Syslog before being executed' puts 'for auditing purposes.' end
log_code_execution(code)
click to toggle source
# File lib/pry-syslog.rb, line 13 def self.log_code_execution(code) syslog.info(code) end
syslog()
click to toggle source
# File lib/pry-syslog.rb, line 17 def self.syslog @syslog ||= ::Syslog::Logger.new('pry_history', Syslog::LOG_LOCAL1) end