@@ -31,7 +31,7 @@ Consider the following SDK usage
3131.. code-block :: python
3232
3333 from f5.bigip import ManagementRoot
34- mgmt = ManagementRoot(' localhost' , ' admin' , ' admin' , port = 10443 , token = True )
34+ mgmt = ManagementRoot(' localhost' , ' admin' , ' admin' , port = 10443 , token = True , debug = True )
3535 resource = mgmt.tm.ltm.pools.pool.create(name = ' foobar' )
3636
3737 This SDK call communicates with a BIG-IP to create an LTM pool. What if you needed to recreate
@@ -47,7 +47,7 @@ let's print each of them.
4747
4848.. code-block :: python
4949
50- for x in mgmt._debug :
50+ for x in mgmt.debug_output :
5151 print (x)
5252
5353 When this is done, we will be presented with output that resembles the following (printed for readability).
@@ -92,3 +92,15 @@ handy is in the process of debugging errors, or, in implementing new functionali
9292
9393You can copy and paste the commands as they are printed and use them to issue the same API calls the the
9494equivalent SDK code does.
95+
96+ Enabling and disabling
97+ ----------------------
98+
99+ The debug logging can also be enabled and disabled as desired. To do this, you can set the ``debug `` property
100+ of the ``ManagementRoot `` object to either a truth-like or false-like value. These include,
101+
102+ **Truth **
103+ 'y', 'yes', 'on', '1', 'true', 't', 1, 1.0, True
104+
105+ **False **
106+ 'n', 'no', 'off', '0', 'false', 'f', 0, 0.0, False
0 commit comments