Class Symbiosis::ApacheLogger
In: httpd/lib/symbiosis/apache_logger.rb
Parent: EventMachine::Connection
Array Utmp EventMachine::Connection ApacheLogger StandardError CrontabFormatError Enumerable IPAddr ::IPAddr Host Range Domain ConfigFile Prosody Tinydns Apache Webalizer Directory IPListDirectory TemplateDirectory Domains Alert Crontab CrontabRecord StateDB Check Runner TCPConnection Test Process BlacklistDB Template Logtail Pattern Ports Blacklist Monitor ConfigFiles Utils Firewall Symbiosis dot/f_0.png

Methods

Classes and Modules

Class Symbiosis::ApacheLogger::DomainCache

Public Class methods

Public Instance methods

Set the cache time

Close all the file handles the class has open

Return our array of filehandles

Set the default gid

Return the log filename

Set the default log filename (access.log by default)

Return the maximum number of filehandles we can have open at any time. If this maximum is exceeded the least-used filehandle is closed.

Set the maximum number of filehandles we can have open at any one time. Defaults to 50.

Opens a log file, returning a filehandle, or nil if it wasn‘t able to. It also tried to create any parent directories.

Return the domain prefix

This method is called when the EventMachine receives a line from the file descriptor, usually STDIN. If the line reads "unbind and stop", the instance tries to unbind, and then it stops the EventMachine. If the line reads "close filehandles and resume", then all filehandles are closed, before the loop is resumed.

Open logs synchronously

Set the default uid

[Validate]