Trace Logging Level

Trace

 

In functions which support this level, details every parameter and operation to help diagnose subtle bugs.

This should only be enabled for specific areas of interest or the log volume will be overwhelming.

Some system performance degradation should be expected.


Define TRACE logging level

 

TRACE is a logging keyword that is understood by most logging tools.

OpenStack has repurposed this in the past to not be TRACE logging

but instead be used whenever a Stacktrace was dumped.

Stack traces should be logged at ERROR level (they currently aren't).

TRACE should be defined as log level 5 in python (which is lower than DEBUG),

and LOG.trace support should be added to oslo logger 1.8.0.

LOG.trace can then be used for deep tracing of code.

 

Oslo.log logging level

 

(1) Critical :

  ZOMG! Cluster on FIRE! Call all pagers, wake up everyone.

  This is an unrecoverable error with a service that has or probably will lead to service death or massive degredation.

(2) Error:

  Serious issue with cloud, administrator should be notified immediately via email/pager. On call people expected to respond.

(3) Warning:

  Something is not right, should get looked into during the next work week.

  Administrators should be working through eliminating warnings as part of normal work.

(4) Info:

  normal status messages showing measureable units of positive work passing through under normal functioning of the system.

  Should not be so verbose as to overwhelm real signal with noise. Should not be continuous "I'm alive!" messages.

(5) Debug:

  developer logging level, only enable if you are interested in reading through a ton of additional information about what is going on.

(6) Trace:

  In functions which support this level, details every parameter and operation to help diagnose subtle bugs.

  This should only be enabled for specific areas of interest or the log volume will be overwhelming.

  Some system performance degradation should be expected.

 

Link:  https://github.com/openstack/openstack-specs/blob/master/specs/log-guidelines.rst

转载于:https://www.cnblogs.com/edisonxiang/p/4717545.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值