dod-cyber-crime-center / sqlite-dissect

DC3 SQLite Dissect
Other
53 stars 8 forks source link

Resolve #37: Logger Handler #38

Closed kchason closed 5 months ago

kchason commented 1 year ago

Addresses https://github.com/dod-cyber-crime-center/sqlite-dissect/issues/37 by adding logging handlers even when the log_level is set to "off" and properly sets the basicConfig.level to None if disabled.

Steps to reproduce the initial issue with the existing repository:

# Setup SQLite Dissect
python setup.py install

# Delete the journal file so it doesn't conflict with the WAL file
rm sqlite_dissect/tests/test_files/chinook.sqlite-journal

# Create a temporary output directory
mkdir output

# Run SQLite Dissect
sqlite_dissect sqlite_dissect/tests/test_files/chinook.sqlite -e sqlite -d output --carve