A log file is a file of data concerning a system event, saved in the flash memory. The log files serve as the system logging database, keeping an internal record of system events.
Enter set logging file enable.
Gxxx-001(super)# set logging file enable Done!
Optionally, define filters to limit the types of messages received.