> On 19 Jan 2018, at 14:26, Zeus Panchenko <z...@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