-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using logging in crmsh #614
Merged
liangxin1300
merged 10 commits into
ClusterLabs:master
from
liangxin1300:20200720_using_python_logging
Sep 13, 2021
Merged
Using logging in crmsh #614
liangxin1300
merged 10 commits into
ClusterLabs:master
from
liangxin1300:20200720_using_python_logging
Sep 13, 2021
Conversation
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
liangxin1300
force-pushed
the
20200720_using_python_logging
branch
28 times, most recently
from
August 2, 2020 06:43
1721d9f
to
e8912c5
Compare
Good works Xin. From what I can see, looks like nothing will break our openQA tests. Anyway, I think this improvement will be added though QAM, which means we will see how our tests will behave. |
liangxin1300
force-pushed
the
20200720_using_python_logging
branch
from
August 27, 2020 08:24
e8912c5
to
7e12d16
Compare
liangxin1300
force-pushed
the
20200720_using_python_logging
branch
7 times, most recently
from
August 26, 2021 00:42
125a84a
to
bbc0c66
Compare
nick-wang
reviewed
Aug 26, 2021
liangxin1300
force-pushed
the
20200720_using_python_logging
branch
2 times, most recently
from
August 26, 2021 07:18
f038780
to
9bce87a
Compare
liangxin1300
force-pushed
the
20200720_using_python_logging
branch
3 times, most recently
from
September 3, 2021 04:28
c00b291
to
3f68c39
Compare
zzhou1
reviewed
Sep 3, 2021
zzhou1
reviewed
Sep 7, 2021
liangxin1300
force-pushed
the
20200720_using_python_logging
branch
from
September 7, 2021 05:18
3f68c39
to
219af9c
Compare
liangxin1300
force-pushed
the
20200720_using_python_logging
branch
from
September 13, 2021 02:01
219af9c
to
fc17d30
Compare
liangxin1300
force-pushed
the
20200720_using_python_logging
branch
from
September 13, 2021 02:06
fc17d30
to
8f7fe29
Compare
zzhou1
approved these changes
Sep 13, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Table of contents
Motivation
The current message/log system in crmsh has below issues:
msg.py
for common use and log related functions inbootstrap.py
sys.stderr
, which might not be convenient for some specific log consume program like hb_reportcommon_error
/common_err
/err_buf.error
, personally I prefer more clear and unify interfacePython
logging
module can perform exactly the same functionalities and address above issues, in a more flexible way.New added features
Log in bootstrap
Message redirection
Hierarchical loggers
Record interactive input
All in /var/log/crmsh.log
bootstrap
other sub-commands
hb_report
cluster crash test
Existing functionalities comparison
Common logging interface
Conditional debug
Add line number(only for original regression test)
Buffered message
rpm package
https://build.opensuse.org/package/show/home:XinLiang:branches:logging/crmsh