Update the schema validator toy to include debugging information.

This commit is contained in:
Mike Auty
2016-11-07 12:37:24 +00:00
parent 96800818af
commit ab9c0860c8
+15
View File
@@ -1,6 +1,21 @@
import argparse
import json
import os
import sys
# TODO: Rather nasty hack, when volatility's actually installed this would be unnecessary
sys.path += ".."
import logging
console = logging.StreamHandler()
console.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(levelname)-8s %(name)-12s: %(message)s')
console.setFormatter(formatter)
logger = logging.getLogger("")
logger.addHandler(console)
logger.setLevel(logging.DEBUG)
from volatility import schemas