updated logger to default to buffered output and added timestamp to unbuffered output