If enabled within the admin, if the folder is writable and set, it will create the debug log for you and then continue to log its output. When you disable debugging, it will automatically clear up old logs in that location.
An example of a debug log: