Controls the generation of OSPFv2 logs.
Only OSPFv2 messages indicating possible system errors are logged.
OSPF router configuration mode
OSPF VRF router configuration mode
Use this command to disable or re-enable the logging of specific events related to OSPFv2. If this command is not enabled only OSPFv2 messages indicating possible system errors are logged.
A limitation with the dr-only sub-option is that when a DR/BDR election is underway, OSPF neighbor state changes pertaining to non-DR/BDR routers are not logged. Logging resumes once a DR is elected on that network.
The no form of this command restores the default.
The following example enables the logging of all OSPFv2-related syslog events.
device# configure terminal device(config)# router ospf device(config-router-ospf-vrf-default-vrf)# log all
The following example enables the logging of OSPFv2 retransmission activities.
device# configure terminal device(config)# router ospf device(config-router-ospf-vrf-default-vrf)# log retransmit