-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e043253
commit 3ffae29
Showing
22 changed files
with
1,142 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
- - _building | ||
- e46e6dbad26ee29fe830c9ec9fb83d448db74daf | ||
- 7727d998036b834fe86d1e995107f42c7fd25276 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
_extends: gh-config | ||
|
||
repository: | ||
description: no desc | ||
description: k3log is a collection of log utilities. | ||
homepage: https://blog.openacid.com | ||
topics: tag1, tag2 | ||
topics: logging, stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,43 @@ | ||
""" | ||
package-name is utility to create sub process. | ||
Execute a shell script:: | ||
import pk3proc | ||
# execute a shell script | ||
returncode, out, err = pk3proc.shell_script('ls / | grep bin') | ||
print returncode | ||
print out | ||
# output: | ||
# > 0 | ||
# > bin | ||
# > sbin | ||
Run a command:: | ||
# Unlike the above snippet, following statement does not start an sh process. | ||
returncode, out, err = pk3proc.command('ls', 'a*', cwd='/usr/local') | ||
k3log is a collection of log utilities for logging. | ||
""" | ||
|
||
# from .proc import CalledProcessError | ||
# from .proc import ProcError | ||
|
||
__version__ = "0.2.2" | ||
_name = "pk3proc" | ||
from .log import ( | ||
add_std_handler, | ||
deprecate, | ||
get_datefmt, | ||
get_fmt, | ||
get_root_log_fn, | ||
make_file_handler, | ||
make_formatter, | ||
make_logger, | ||
set_logger_level, | ||
stack_format, | ||
stack_list, | ||
stack_str, | ||
) | ||
|
||
# from .archive import( | ||
# Archiver, | ||
|
||
# archive, | ||
# clean, | ||
# ) | ||
|
||
__version__ = "0.1.2" | ||
__name__ = "k3log" | ||
|
||
__all__ = [ | ||
"add_std_handler", | ||
"deprecate", | ||
"get_datefmt", | ||
"get_fmt", | ||
"get_root_log_fn", | ||
"make_file_handler", | ||
"make_formatter", | ||
"make_logger", | ||
"set_logger_level", | ||
"stack_format", | ||
"stack_list", | ||
"stack_str", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.