home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / perl / Layout.pm < prev    next >
Encoding:
Perl POD Document  |  2003-01-14  |  1.3 KB  |  66 lines

  1. package Log::Log4perl::Layout;
  2.  
  3.  
  4. use Log::Log4perl::Layout::SimpleLayout;
  5. use Log::Log4perl::Layout::PatternLayout;
  6.  
  7.  
  8. ####################################################
  9. sub appender_name {
  10. ####################################################
  11.     my ($self, $arg) = @_;
  12.  
  13.     if ($arg) {
  14.         die "setting appender_name unimplemented until it makes sense";
  15.     }
  16.     return $self->{appender_name};
  17. }
  18.  
  19.  
  20. ##################################################
  21. sub define {
  22. ##################################################
  23.     ;  #subclasses may implement
  24. }
  25.  
  26.  
  27. ##################################################
  28. sub render {
  29. ##################################################
  30.     die "subclass must implement render";
  31. }
  32.  
  33. 1;
  34.  
  35. __END__
  36.  
  37. =head1 NAME
  38.  
  39. Log::Log4perl::Layout - Log4perl Layout Virtual Base Class
  40.  
  41. =head1 SYNOPSIS
  42.  
  43.     # Not to be used directly, see below
  44.  
  45. =head1 DESCRIPTION
  46.  
  47. C<Log::Log4perl::Layout> is a virtual base class for the two currently 
  48. implemented layout types
  49.  
  50.     Log::Log4perl::Layout::SimpleLayout
  51.     Log::Log4perl::Layout::PatternLayout
  52.  
  53. Unless you're implementing a new layout class for Log4perl, you shouldn't
  54. use this class directly, but rather refer to
  55. L<Log::Log4perl::Layout::SimpleLayout> or 
  56. L<Log::Log4perl::Layout::PatternLayout>.
  57.  
  58. =head1 SEE ALSO
  59.  
  60. =head1 AUTHOR
  61.  
  62. Kevin Goess, <cpan@goess.org>
  63. Mike Schilli, <m@perlmeister.com>
  64.  
  65. =cut
  66.