GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LOG::ANY::ADAPTER::FILE (3)

.ds Aq ’

NAME

Log::Any::Adapter::File - Simple adapter for logging to files

CONTENTS

VERSION

version 1.032

SYNOPSIS



    use Log::Any::Adapter (File, /path/to/file.log);

    # or

    use Log::Any::Adapter;
    ...
    Log::Any::Adapter->set(File, /path/to/file.log);

    # with minimum level warn

    use Log::Any::Adapter (
        File, /path/to/file.log, log_level => warn,
    );



DESCRIPTION

This simple built-in Log::Any adapter logs each message to the specified file, with a datestamp prefix and newline appended. The file is opened for append with autoflush on. If flock is available, the handle will be locked when writing.

The log_level attribute may be set to define a minimum level to log.

Category is ignored.

SEE ALSO

Log::Any, Log::Any::Adapter

AUTHORS

o Jonathan Swartz <swartz@pobox.com>
o David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Jonathan Swartz and David Golden.

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 LOG::ANY::ADAPTER::FILE (3) 2015-03-26

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.