Re: [Q] what is the right way to log what script does?
[email protected] (Chris Ridd) Fri, 19 Jan 2018 21:00:08 +0000
| Newsgroups | perl.ldap |
|---|---|
| Message-ID | <[email protected]> |
> On 19 Jan 2018, at 14:26, Zeus Panchenko <[email protected]> wrote: >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > hi, >=20 > I need to know what script did ...=20 >=20 > what is the best way to log script all LDAP related activity? >=20 > is it something like? >=20 > sub each_ldap_related_anything { > ... > use Storable; > store \%all_things_to_log, 'file'; > =E2=80=A6 > } 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=