Class: BinProxy::Connection::Filters::Logger

Inherits:
Base
  • Object
show all
Includes:
Logger
Defined in:
lib/binproxy/connection/filters.rb

Instance Attribute Summary

Attributes inherited from Base

#conn

Instance Method Summary collapse

Methods included from Logger

log

Methods inherited from Base

#initialize, #session_closing, #upstream_connected

Constructor Details

This class inherits a constructor from BinProxy::Connection::Filters::Base

Instance Method Details

#initObject



51
52
53
# File 'lib/binproxy/connection/filters.rb', line 51

def init
  log.debug "CONNECTION CREATED #{conn}"
end

#read(data) ⇒ Object



54
55
56
57
# File 'lib/binproxy/connection/filters.rb', line 54

def read(data)
  log.debug "READ #{conn}\n#{data.hexdump}"
  data
end

#write(data) ⇒ Object



58
59
60
61
# File 'lib/binproxy/connection/filters.rb', line 58

def write(data)
  log.debug "WRITE #{conn}\n#{data.hexdump}"
  data
end