Added a max length to the log with default