Forum Discussion

juanmesa's avatar
juanmesa
Occasional Contributor
12 years ago

Disable english comments in Logs.

Hi,



I need to see reports in spanish, I cant get change the language in TC. So I create my own  logs messages but I need disable the english comments.

Like images shows, I need to disable logs in red box.

Anybody knows how disable that ?

Thanks in advance.

1 Reply

  • You just need an event handler tied to the events you don't want logged. There might be a better way, but I've suppressed events, messages and warnings  when they have additional text specified. This works for us because we don't use Additional Text when we manually log things.




    Sub GeneralEvents_SuppressSystemLogging(Sender, LogParams)


        'events, warnings and messages will be suppressed if the Additional Text is populated


        'when the system is generating logging, it populated Additional Text


        'when logging events, warnings or messages from a test, we should not include Additional Text


        if len(logparams.additionaltext) > 0 then


            logparams.locked = true


        else


            logparams.locked = false


        end if


    End Sub