develooper Front page | perl.ldap | Postings from January 2018

Re: [Q] what is the right way to log what script does?

Thread Previous
From:
Chris Ridd
Date:
January 19, 2018 21:00
Subject:
Re: [Q] what is the right way to log what script does?
Message ID:
9E962968-5DA2-4F47-8FE7-20AD98D920A8@mac.com

> On 19 Jan 2018, at 14:26, Zeus Panchenko <zeus@ibs.dn.ua> wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hi,
> 
> I need to know what script did ... 
> 
> what is the best way to log script all LDAP related activity?
> 
> is it something like?
> 
> sub each_ldap_related_anything {
>  ...
>  use Storable;
>  store \%all_things_to_log, 'file';
>  …
> }

Well it depends on what sort of output you wanted, and how much work you wanted to do.

The built-in debugging might work, which is called automatically on all sends and receives. You get a choice of hex dumps or BER (or both!), so it is pretty low-level and hardcore.

Look for the debug method in the docs.

Chris
Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About