Need a way to hide/mask password in the debug log

Asked by hung

Hi,

I created a script to login to a website, but i want to mask or hide the password in the debug log file and when it gets printed out in the console as well. For example, the action is 'type(password_textbox.png, pw)', I want to mask/hide the text string 'pw' when it gets log to the console or file, or even skip logging it. Thanks for your help.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Roman Podolyan (podolyan-roman) said :
#1

class Settings

New in version X1.0-rc2.

Settings.ActionLogs
Settings.InfoLogs
Settings.DebugLogs

 Either option might be switched on (True) or off (False), to show or hide the respective message type in the IDE console or on command line ([log], [info], [debug]).

Example (try it):
___________
click(500,500)

type("This typing is visible in log...")

Settings.ActionLogs = False

type("And this is not visible in log ...")

__________

Can you help with this problem?

Provide an answer of your own, or ask hung for more information if necessary.

To post a message you must log in.