Sets up logging
Starts work on the 'trace' command