feat(console): complete log overhaul, allowing more granular debug messages, and logging to console
parent
aef6c65a9e
commit
17dc2aeabd
|
@ -185,7 +185,7 @@ def main():
|
|||
sys.exit(0)
|
||||
elif args.module and args.show_module_options:
|
||||
for module in args.module:
|
||||
logger.info(f"{module} module options:\n{modules[module]['options']}")
|
||||
cme_logger.display(f"{module} module options:\n{modules[module]['options']}")
|
||||
sys.exit(0)
|
||||
elif args.module:
|
||||
cme_logger.debug(f"Modules to be Loaded: {args.module}, {type(args.module)}")
|
||||
|
|
|
@ -166,7 +166,7 @@ class CMEAdapter(logging.LoggerAdapter):
|
|||
|
||||
msg, kwargs = self.format(u'{}'.format(colored(msg, 'yellow', attrs=['bold'])), kwargs)
|
||||
text = Text.from_ansi(msg)
|
||||
cme_console.print(text, *args, **kwargs)
|
||||
self.display(text, *args, **kwargs)
|
||||
|
||||
# For Impacket's TDS library
|
||||
def logMessage(self, message):
|
||||
|
|
Loading…
Reference in New Issue