Class: Apache::LogDevice

Inherits:
Logger::LogDevice
  • Object
show all
Defined in:
lib/apache/logger.rb

Overview

An adapter object that can be used as a log device for a Logger instance that sends log messages to Apache’s logging subsystem at ‘debug’ level.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ LogDevice

Returns a new instance of LogDevice.



11
# File 'lib/apache/logger.rb', line 11

def initialize( *args ); end

Instance Method Details

#closeObject

No-op – this is here just so Logger doesn’t complain



19
# File 'lib/apache/logger.rb', line 19

def close; end

#write(message) ⇒ Object

Write a logging message to Apache’s debug log.



14
15
16
# File 'lib/apache/logger.rb', line 14

def write( message )
	Apache.request.server.log_debug( message )
end