LogFly 1.6__tar.gz → 1.7__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.
- {logfly-1.6/src/logfly.egg-info → logfly-1.7}/PKG-INFO +10 -3
- {logfly-1.6 → logfly-1.7}/README.md +9 -2
- {logfly-1.6 → logfly-1.7}/setup.py +1 -1
- {logfly-1.6 → logfly-1.7}/src/logfly/__init__.py +24 -3
- {logfly-1.6 → logfly-1.7/src/logfly.egg-info}/PKG-INFO +10 -3
- {logfly-1.6 → logfly-1.7}/LICENSE +0 -0
- {logfly-1.6 → logfly-1.7}/pyproject.toml +0 -0
- {logfly-1.6 → logfly-1.7}/setup.cfg +0 -0
- {logfly-1.6 → logfly-1.7}/src/logfly/soundfly/__init__.py +0 -0
- {logfly-1.6 → logfly-1.7}/src/logfly.egg-info/SOURCES.txt +0 -0
- {logfly-1.6 → logfly-1.7}/src/logfly.egg-info/dependency_links.txt +0 -0
- {logfly-1.6 → logfly-1.7}/src/logfly.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: logfly
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7
|
|
4
4
|
Summary: A 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.
|
|
18
|
+
# logfly 1.7
|
|
19
19
|
### a simple log tool by python
|
|
20
20
|
|
|
21
21
|
## position
|
|
@@ -25,7 +25,7 @@ if use hidden, log will also appear in user/.1o9f1y folder
|
|
|
25
25
|
## How to
|
|
26
26
|
### import
|
|
27
27
|
import logfly
|
|
28
|
-
###
|
|
28
|
+
### use1
|
|
29
29
|
logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys', hidden='no', color='yes', str_message='yes')
|
|
30
30
|
|
|
31
31
|
## Description
|
|
@@ -43,6 +43,13 @@ if use hidden, log will also appear in user/.1o9f1y folder
|
|
|
43
43
|
color: ('yes', 'no') default is 'yes', means log will with color.
|
|
44
44
|
str_message: ('yes', 'no') default is 'yes', means log will print message with str()
|
|
45
45
|
|
|
46
|
+
###use2
|
|
47
|
+
logfly.create_file(pathfile='', filenname='')
|
|
48
|
+
|
|
49
|
+
##Description
|
|
50
|
+
pathfile is the file path that you want to create, must fill with //
|
|
51
|
+
filenname is the file name that you want to create, must is with *.*
|
|
52
|
+
|
|
46
53
|
## Example:
|
|
47
54
|
|
|
48
55
|
### both file and CLI code
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# logfly 1.
|
|
1
|
+
# logfly 1.7
|
|
2
2
|
### a simple log tool by python
|
|
3
3
|
|
|
4
4
|
## position
|
|
@@ -8,7 +8,7 @@ if use hidden, log will also appear in user/.1o9f1y folder
|
|
|
8
8
|
## How to
|
|
9
9
|
### import
|
|
10
10
|
import logfly
|
|
11
|
-
###
|
|
11
|
+
### use1
|
|
12
12
|
logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys', hidden='no', color='yes', str_message='yes')
|
|
13
13
|
|
|
14
14
|
## Description
|
|
@@ -26,6 +26,13 @@ if use hidden, log will also appear in user/.1o9f1y folder
|
|
|
26
26
|
color: ('yes', 'no') default is 'yes', means log will with color.
|
|
27
27
|
str_message: ('yes', 'no') default is 'yes', means log will print message with str()
|
|
28
28
|
|
|
29
|
+
###use2
|
|
30
|
+
logfly.create_file(pathfile='', filenname='')
|
|
31
|
+
|
|
32
|
+
##Description
|
|
33
|
+
pathfile is the file path that you want to create, must fill with //
|
|
34
|
+
filenname is the file name that you want to create, must is with *.*
|
|
35
|
+
|
|
29
36
|
## Example:
|
|
30
37
|
|
|
31
38
|
### both file and CLI code
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#####################
|
|
2
2
|
# Author: Yuki Sui
|
|
3
|
-
# Date: 2022-1-
|
|
3
|
+
# Date: 2022-1-27
|
|
4
4
|
#####################
|
|
5
5
|
|
|
6
6
|
import time
|
|
@@ -10,7 +10,23 @@ from pathlib import Path
|
|
|
10
10
|
from colorama import init
|
|
11
11
|
|
|
12
12
|
init(autoreset=True)
|
|
13
|
-
__version__ = '1.
|
|
13
|
+
__version__ = '1.7'
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def create_file(pathfile='', filenname=''):
|
|
17
|
+
if pathfile is None:
|
|
18
|
+
return False
|
|
19
|
+
if not os.path.exists(pathfile):
|
|
20
|
+
os.makedirs(pathfile)
|
|
21
|
+
else:
|
|
22
|
+
pass
|
|
23
|
+
filepath = pathfile + filenname
|
|
24
|
+
if not os.path.isfile(filepath):
|
|
25
|
+
with open(filepath, 'w') as filefiletemp:
|
|
26
|
+
filefiletemp.write('')
|
|
27
|
+
filefiletemp.close()
|
|
28
|
+
else:
|
|
29
|
+
pass
|
|
14
30
|
|
|
15
31
|
|
|
16
32
|
def create_log_folder(folder_name, hidden):
|
|
@@ -158,7 +174,12 @@ def error():
|
|
|
158
174
|
write_log('logfly-log', 'CLI', 'error', logflyErrorMessage)
|
|
159
175
|
|
|
160
176
|
|
|
177
|
+
'''
|
|
161
178
|
if __name__ == '__main__':
|
|
179
|
+
path = '.\\'
|
|
180
|
+
create_file(path, 'test.test')
|
|
181
|
+
|
|
182
|
+
|
|
162
183
|
write_log('Doctor Who', 'CLI', 'info', "this is Doctor's log, only in CLI.")
|
|
163
184
|
write_log('Doctor Who', 'CLI', 'warning', "this is Doctor's log, only in CLI.")
|
|
164
185
|
write_log('Doctor Who', 'CLI', 'error', "this is Doctor's log, only in CLI.")
|
|
@@ -176,4 +197,4 @@ if __name__ == '__main__':
|
|
|
176
197
|
write_log('Tardis', 'fileCLI', 'info', "this is Tardis's log, in file and CLI.", hidden='yes')
|
|
177
198
|
write_log('Tardis', 'file', 'info', "this is Tardis's log, only in file.", hidden='yes')
|
|
178
199
|
write_log('Death', 'fileCLI', 'info', "this is Death's log, in file and CLI.",
|
|
179
|
-
mode='add', folder_name='death', hidden='yes')
|
|
200
|
+
mode='add', folder_name='death', hidden='yes')'''
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: logfly
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7
|
|
4
4
|
Summary: A 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.
|
|
18
|
+
# logfly 1.7
|
|
19
19
|
### a simple log tool by python
|
|
20
20
|
|
|
21
21
|
## position
|
|
@@ -25,7 +25,7 @@ if use hidden, log will also appear in user/.1o9f1y folder
|
|
|
25
25
|
## How to
|
|
26
26
|
### import
|
|
27
27
|
import logfly
|
|
28
|
-
###
|
|
28
|
+
### use1
|
|
29
29
|
logfly.write_log('name', 'where', 'info', 'message', mode='add', folder_name='logflys', hidden='no', color='yes', str_message='yes')
|
|
30
30
|
|
|
31
31
|
## Description
|
|
@@ -43,6 +43,13 @@ if use hidden, log will also appear in user/.1o9f1y folder
|
|
|
43
43
|
color: ('yes', 'no') default is 'yes', means log will with color.
|
|
44
44
|
str_message: ('yes', 'no') default is 'yes', means log will print message with str()
|
|
45
45
|
|
|
46
|
+
###use2
|
|
47
|
+
logfly.create_file(pathfile='', filenname='')
|
|
48
|
+
|
|
49
|
+
##Description
|
|
50
|
+
pathfile is the file path that you want to create, must fill with //
|
|
51
|
+
filenname is the file name that you want to create, must is with *.*
|
|
52
|
+
|
|
46
53
|
## Example:
|
|
47
54
|
|
|
48
55
|
### both file and CLI code
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|