log masking
added file logging