The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Parse::AccessLogEntry::Accessor - adds accessors to Parse::AccessLogEntry module.

VERSION

Version 0.01

SYNOPSIS

    use Parse::AccessLogEntry::Accessor;
    my $parser = Parse::AccessLogEntry::Accessor->new();

    # $line is a string containing one line of an access log
    $parser->parse($line);
    print $parser->host(), "\n";

DESCRIPTION

This module is an Apache accesslog parser. It's based on Parse::AccessLogEntry module.

The key name of the hushref and the accessor of this name are offered.

CLASS METHODS

new

Create an instance of Parse::AccessLogEntry::Accessor

INSTANCE METHODS

parse

Parse one line of an Apache accesslog

host

Get client ip of the request

user

Get user logged in ("-" for none)

date

Get date of the request

time

Get server time of the request

diffgmt

Get server offset from GMT

rtype

Get type of request (GET, POST, etc)

file

Get file requested

proto

Get protocol used (HTTP/1.1, etc)

code

Get code returned by apache (200, 304, etc)

bytes

Get number of bytes returned to the client

refer

Get referrer

agent

Get user-agent

SEE ALSO

Parse::AccessLogEntry

AUTHOR

Ryoji Tanida, <amarisan@cpan.org>

COPYRIGHT & LICENSE

Copyright 2008 Ryoji Tanida, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.