logger added to programmatically set the level at which a message should
be written