Set attributes method for the log