Auto log the console?

Is there a way to log the console to a file automatically?

According to the Valve Developer wiki, the -condebug launch parameter will do this.

Be sure to check on the log size though, as depending on popularity, the files can get quite big over time.