mindspore.get_level

View Source On Gitee
mindspore.get_level()[source]

Get the logger level.

Returns

str, the Log level includes 4(CRITICAL), 3(ERROR), 2(WARNING), 1(INFO), 0(DEBUG).

Examples

>>> import os
>>> import mindspore as ms
>>> os.environ['GLOG_v'] = '0'
>>> level = ms.get_level()
>>> print(level)
'0'