Truncate log file possible?

Is the log file ever truncated or rotated? Mine is way over a year old with hundreds of thousands of lines.

Is there a developer approved method of truncation - say last 30 days entries?