NAME

XAS::Lib::Modules::Log::File - A mixin class for logging

DESCRIPTION

This module is a mixin for logging. It logs to a file.

METHODS

init_log

This method initializes the module. It uses the file specified with the -filename parameter. It checks to make sure it exists, if it doesn't it creates the file. On a Unix like system, it will change the file permissions to rx-rx-r.

output($hashref)

The method formats the hashref and writes out the results.

destroy

This methods deinitializes the module.

SEE ALSO

XAS::Lib::Modules::Log
XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (C) 2014 Kevin L. Esteb

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.