Parameter and Command Reference > Logging Configuration Parameters > LogHistorySize 

LogHistorySize 
The number of log messages to store in memory.
 
Allowed Range:
Minimum: 1
Maximum: 520