Coverage for C:\src\imod-python\imod\logging\loglevel.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-08 10:26 +0200

1from enum import Enum 

2 

3 

4class LogLevel(Enum): 

5 """ 

6 The available log levels for the logger. 

7 """ 

8 

9 DEBUG = 10 

10 """ 

11 A log level used for events considered to be useful during software  

12 debugging when more granular information is needed. 

13 """ 

14 INFO = 20 

15 """ 

16 An event happened, the event is purely informative and can be ignored  

17 during normal operations. 

18 """ 

19 WARNING = 30 

20 """ 

21 Unexpected behavior happened inside the application, but it is continuing 

22 its work and the key business features are operating as expected. 

23 """ 

24 ERROR = 40 

25 """ 

26 One or more functionalities are not working, preventing some functionalities  

27 from working correctly. 

28 """ 

29 CRITICAL = 50 

30 """ 

31 One or more key business functionalities are not working and the whole  

32 system doesn’t fulfill the business functionalities. 

33 """