Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Log::Any::Adapter::FilUser Contributed Perl DocumentLog::Any::Adapter::File(3)

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

VERSION
       version 1.707

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.

       The "binmode" attribute may be set to define a PerlIO layer string to
       use when	opening	the file.  The default is ":utf8".

       Category	is ignored.

SEE ALSO
       Log::Any, Log::Any::Adapter

AUTHORS
       o   Jonathan Swartz <swartz@pobox.com>

       o   David Golden	<dagolden@cpan.org>

       o   Doug	Bell <preaction@cpan.org>

       o   Daniel Pittman <daniel@rimspace.net>

       o   Stephen Thirlwall <sdt@cpan.org>

COPYRIGHT AND LICENSE
       This software is	copyright (c) 2017 by Jonathan Swartz, David Golden,
       and Doug	Bell.

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

perl v5.32.1			  2018-08-02	    Log::Any::Adapter::File(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHORS | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Log::Any::Adapter::File&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help