NAME

Log::Any::Adapter::DERIV - standardised logging to STDERR and JSON file

SYNOPSIS

use Mojo::WebSocketProxy::RequestLogger;

my $logger = Mojo::WebSocketProxy::RequestLogger->new();

$logger->info('This is an info message');

DESCRIPTION

Mojo::WebSocketProxy::RequestLogger is a request logger for Mojo::WebSocketProxy.

METHODS

DOES

DOES($role)

Check if an object or class does a particular role.

META

META()

Return the meta object for the class.

new

new()

Create a new `Mojo::WebSocketProxy::RequestLogger` object.

set_handler

set the handler for message logging

infof

info format message logging

tracef

trace format message logging

errorf

error format message logging

warnf

warn format message logging

debugf

debug format message logging

critf

critical format message logging

info

info message logging

trace

trace message logging

error

error message logging

warn

warn message logging

debug

debug message logging

crit

crit message logging

get_context

get the value of context

add_context_key

add a key in log context hash

remove_context_key

remove key from context

AUTHOR

Deriv Group Services Ltd. DERIV@cpan.org

COPYRIGHT AND LICENSE

Copyright Deriv Group Services Ltd 2020-2021. Licensed under the same terms as Perl itself.