elastic / SWAT

Simple Workspace Attack Tool (SWAT) is a tool for simulating malicious behavior against Google Workspace in reference to the MITRE ATT&CK framework.
Apache License 2.0
161 stars 7 forks source link

[Enhancement] Adjust `print` statements and add emulation logging #53

Closed terrancedejesus closed 1 year ago

terrancedejesus commented 1 year ago

Overview

This PR adjusts print statements where applicable to the logger. It also adds logs/ as the folder where all logs live. In here is the base swat.log.

Also added separate emulation module logging and log files. This logger is added to the handlers during base_emulation and therefore inherited into each emulation module as self.elogger. With this, it will also log to the swat.log file and its own TACTIC_MODULENAME.log file.

Screenshot 2023-08-05 at 1 06 40 PM