Revamped Logging system; added logging formatting