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  -  SEARCH::ELASTICSEARCH::LOGGER::LOGANY (3)

.ds Aq ’

NAME

Search::Elasticsearch::Logger::LogAny - A Log::Any-based Logger implementation

CONTENTS

VERSION

version 2.00

DESCRIPTION

Search::Elasticsearch::Logger::LogAny provides event logging and the tracing of request/response conversations with Elasticsearch nodes via the Log::Any module.

Logging refers to log events, such as node failures, pings, sniffs, etc, and should be enabled for monitoring purposes.

Tracing refers to the actual HTTP requests and responses sent to Elasticsearch nodes. Tracing can be enabled for debugging purposes, or for generating a pretty-printed curl script which can be used for reporting problems.

CONFIGURATION

Logging and tracing can be enabled using Log::Any::Adapter, or by passing options to new() in Search::Elasticsearch.

    USING LOG::ANY::ADAPTER

Send all logging and tracing to STDERR:



    use Log::Any::Adapter qw(Stderr);
    use Search::Elasticsearch;
    my $e = Search::Elasticsearch->new;



Send logging to a file, and tracing to Stderr:



    use Log::Any::Adapter();
    Log::Any::Adapter->set(
        { category => elasticsearch.event },
        File,
        /path/to/file.log
    );
    Log::Any::Adapter->set(
        { category => elasticsearch.trace },
        Stderr
    );

    use Search::Elasticsearch;
    my $e = Search::Elasticsearch->new;



USING CWlog_to AND CWtrace_to

Send all logging and tracing to STDERR:



    use Search::Elasticsearch;
    my $e = Search::Elasticsearch->new(
        log_to   => Stderr,
        trace_to => Stderr
    );



Send logging to a file, and tracing to Stderr:



    use Search::Elasticsearch;
    my $e = Search::Elasticsearch->new(
        log_to   => [File, /path/to/file.log],
        trace_to => Stderr
    );



See Log::Any::Adapter for more.

AUTHOR

Clinton Gormley <drtech@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Elasticsearch BV.

This is free software, licensed under:



  The Apache License, Version 2.0, January 2004



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


perl v5.20.3 SEARCH::ELASTICSEARCH::LOGGER::LOGANY (3) 2015-10-28

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