LogFly 1.3__tar.gz → 1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: logfly
3
- Version: 1.3
3
+ Version: 1.4
4
4
  Summary: Aa simple log tool by python
5
5
  Home-page: https://about.guki.me
6
6
  Author: Yuan Sui
@@ -15,7 +15,7 @@ Requires-Python: >=3.6
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
17
 
18
- # logfly 1.3
18
+ # logfly 1.4
19
19
  ### a simple log tool by python
20
20
 
21
21
  ## position
@@ -1,4 +1,4 @@
1
- # logfly 1.3
1
+ # logfly 1.4
2
2
  ### a simple log tool by python
3
3
 
4
4
  ## position
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="logfly",
8
- version="1.3",
8
+ version="1.4",
9
9
  author="Yuan Sui",
10
10
  author_email="orisui@icloud.com",
11
11
  description="Aa simple log tool by python",
@@ -1,7 +1,7 @@
1
1
  #####################
2
2
  # Author: Yuki Sui
3
3
  # Date: 2021-12-05
4
- # Version: 1.3
4
+ # Version: 1.4
5
5
  #####################
6
6
 
7
7
  import time
@@ -64,11 +64,11 @@ def write_log(name, position, level, message, mode='add', folder_name='logflys',
64
64
  elif color == 'yes':
65
65
  LogFlyMessage = name + ' ' + get_time('datetime') + ' ' + '[' + str.upper(level) + ']' + ' ' + message + \
66
66
  '\r\n '
67
- if level == 'info':
67
+ if str.upper(level) == 'INFO':
68
68
  print(f'\033[0;34m{LogFlyMessage}\033[0m')
69
- elif level == 'warning':
69
+ elif str.upper(level) == 'WARNING':
70
70
  print(f'\033[0;33m{LogFlyMessage}\033[0m')
71
- elif level == 'error':
71
+ elif str.upper(level) == 'ERROR':
72
72
  print(f'\033[0;31m{LogFlyMessage}\033[0m')
73
73
  else:
74
74
  print(f'\033[0;37m{LogFlyMessage}\033[0m')
@@ -101,11 +101,11 @@ def write_log(name, position, level, message, mode='add', folder_name='logflys',
101
101
  elif color == 'yes':
102
102
  LogFlyMessage = name + ' ' + get_time('datetime') + ' ' + '[' + str.upper(level) + ']' + ' ' + message + \
103
103
  '\r\n '
104
- if level == 'info':
104
+ if str.upper(level) == 'INFO':
105
105
  print(f'\033[0;34m{LogFlyMessage}\033[0m')
106
- elif level == 'warning':
106
+ elif str.upper(level) == 'WARNING':
107
107
  print(f'\033[0;33m{LogFlyMessage}\033[0m')
108
- elif level == 'error':
108
+ elif str.upper(level) == 'ERROR':
109
109
  print(f'\033[0;31m{LogFlyMessage}\033[0m')
110
110
  else:
111
111
  print(f'\033[0;37m{LogFlyMessage}\033[0m')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: logfly
3
- Version: 1.3
3
+ Version: 1.4
4
4
  Summary: Aa simple log tool by python
5
5
  Home-page: https://about.guki.me
6
6
  Author: Yuan Sui
@@ -15,7 +15,7 @@ Requires-Python: >=3.6
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
17
 
18
- # logfly 1.3
18
+ # logfly 1.4
19
19
  ### a simple log tool by python
20
20
 
21
21
  ## position
File without changes
File without changes
File without changes