Configuring Logging Destinations for SRC 3GPP Gy to Store Messages in a File (SRC CLI)
Use the following configuration statements to configure file logging for SRC's Gy:
slot number gy-3gpp logger name ...
slot number gy-3gpp logger name file {
filter filter;
filename filename;
rollover-filename rollover-filename;
maximum-file-size maximum-file-size;
}
To configure logging destinations to store log messages in a file:
From configuration mode, access the statement that configures the name and type of logging destination. In this sample procedure, the logging destination called error is configured.
user@host# edit slot 0 gy-3gpp logger error fileSpecify the properties for the logging destination.
[edit slot 0 gy-3gpp logger error file]user@host# set ?For more information about configuring properties for the logging destination, see Configuring an SRC Component to Store Log Messages in a File (SRC CLI).
(Optional) Verify your configuration.
[edit slot 0 gy-3gpp logger error file] user@host# show filename var/log/3gpp-gy-error.log; filter /error-; maximum-file-size 2000000; rollover-filename var/log/3gpp-gy-error.alt;