How to make the log file printed by access_log split

what's the limit of the size of log file, and what will happen when it reaches the limitation?
if I want to split the log file by timeline, say start a new file on the beginning of an hour, how can I configure ngnix?