VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Detect if loggin is enabled? (https://forums.vandyke.com/showthread.php?t=12402)

Rhudi 07-08-2016 07:10 AM

Detect if loggin is enabled?
 
I have a script that currently uses:
Code:

crt.Session.Log False
...
crt.Session.LogUsingSessionOptions

What I need to do is detect if logging was already enabled. So, I'll add code like this:
Code:

If <detect session logging is true> then bLoggingEnabled = True

If bLoggingEnabled Then crt.Session.Log False
...
If bLoggingEnabled Then crt.Session.LogUsingSessionOptions

The idea is, if the session is set for logging, I need to toggle. If it isn't, then toggling not needed. :P


All times are GMT -6. The time now is 01:17 AM.