-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
33 lines (29 loc) · 859 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created By : Ali B Othman
# Test V 1.2.0
# Simple Test File
from easylogging import *
########## very important ############
logname(__file__)
######################
print('########### TEST DEBUG ###########')
debug('logs debug done')
print('########### TEST INFO ###########')
info('Start log')
print('########### TEST WARNING ###########')
warning('Warning')
print('########### TEST CRITICAL ###########')
critical('Stopped !!')
print('########### TEST INPUT int ###########')
info(1)
print('########### TEST INPUT float ###########')
debug(3.4)
print('########### TEST ERROR ###########')
try:
Test_Error
except Exception :
error('**Error : exc_info = True**', exc_info = True)
print('########### TEST ERROR ###########')
try:
Test_Error
except Exception :
error('**Error : exc_info = False**', exc_info = False)