Forum Discussion
shankar_r
8 years agoCommunity Hero
I used to use the Log option as like below in-order to get the Unit name of the script.
In my event handler, I will have different set of Log attributes based on the Unit name and handle it different way.
function test()
{
Log.Error("text box is enabled in the login screen","LoginUtility");
}
function GeneralEvents_OnLogError(Sender, LogParams)
{
if(LogParams.AdditionalText == "LoginUtility")
{
aqFile.WriteToTextFile(Project.Path + "login-logs",LogParams.MessageText,aqFile.ctANSI);
}
}
I maybe misunderstood the question :)