Slide 17
Slide 17 text
17
© 2013-2014 Cisco and/or its affiliates. All rights reserved.
General rules for loglevels:
Critical: Shit's on fire, yo. Expected, known issue where things will break and
bad.
Error: Standard unexpected error trap - final, top-level error trap should
dump the message to ERROR.
Also, known error cases that someone should handle that aren't necessarily
"the world is exploding"
Warn: expected error conditions that might be an issue, but not huge
problems. Example at session: Glance's error at startup that it can't find a
storage device ID (which is currently error, should be warn)
Info: Standard operational logging: VM request received, scheduled to launch
on hypervisor X
Debug: What's going on under the hood. So you can trace down origins of
errors - shouldn't have to be on by default
Trace: Super debug. Method-level logging, or some otherwise extra-detailed
info like slightly sanitized api conversations
Logging as an example