- Timestamp:
- 11/11/08 11:19:25 (8 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/pop-proxy-branch/ebox/src/EBox/LogHelper.pm
r7318 r11619 16 16 # Class: EBox::LogHelper 17 17 # 18 # This class exposes the interface to be implemented by those19 # modules willing to process logs generated by their daemon or service.20 # An instance of this class must be returned inheriting from21 # EBox::LogObserver and implementing the method logHelper()18 # This class exposes the interface to be implemented by those 19 # modules willing to process logs generated by their daemon or service. 20 # An instance of this class must be returned inheriting from 21 # EBox::LogObserver and implementing the method logHelper() 22 22 # 23 23 package EBox::LogHelper; … … 28 28 sub new 29 29 { 30 my $class = shift;31 my $self = {};32 bless($self, $class);33 return $self;30 my $class = shift; 31 my $self = {}; 32 bless($self, $class); 33 return $self; 34 34 } 35 35 36 36 # Method: logFiles 37 37 # 38 # This function must return the file or files to be read from.38 # This function must return the file or files to be read from. 39 39 # 40 40 # Returns: 41 41 # 42 # array ref - containing the whole paths42 # array ref - containing the whole paths 43 43 # 44 44 sub logFiles 45 45 { 46 return []; 46 return []; 47 47 } 48 48 49 49 # Method: processLine 50 50 # 51 # This function will be run every time a new line is received in52 # the associated file. You must parse the line, and generate53 # the messages which will be logged to eBox through an object54 # implementing <EBox::AbstractLogger> interface.51 # This function will be run every time a new line is received in 52 # the associated file. You must parse the line, and generate 53 # the messages which will be logged to eBox through an object 54 # implementing <EBox::AbstractLogger> interface. 55 55 # 56 56 # Parameters: 57 57 # 58 # file - file name59 # line - string containing the log line60 # dbengine - An instance of class implemeting AbstractDBEngine interface61 # 58 # file - file name 59 # line - string containing the log line 60 # dbengine - An instance of class implemeting AbstractDBEngine interface 61 # 62 62 sub processLine # (file, line, dbengine) 63 63 { 64 return undef;64 return undef; 65 65 } 66 66
