-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
natlinkconfig programs now use logging (#65)
* natlinkstatus.py: entered getUnimacroGrammarsDirectory * multiple changes in natlinkstatus.py and natlinkconfigfunctions.py, letting eg unimacro setup be better * add 2 tests execscriptest.py is ok, buttonclicktest.py fails. The cause is playEvents. (Dragon 16) * the buttonclicktest.py shows the bug when natlink.playEvents is called. * also enter dragonfly (dragonfly2) in the config procedure, including testing for upgrades.. * add a few changes to nsformat.py (a\\determiner and I\\pronoun, a word with \\ (properties) can also have length 2 when splitted into wordList. Logging: * use pythong logging module to report output of pip etc. * command line uses logging. * logging to cli. Loader.py: * adapt load_or_reload_module function with force_load, so it works from Unimacro (_control.py grammar). --------- Co-authored-by: Quintijn Hoogenboom <[email protected]>
- Loading branch information
1 parent
0e6e95f
commit 852f7c6
Showing
12 changed files
with
324 additions
and
108 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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ERROR: Could not find a version that satisfies the requirement foobar32 (from versions: none) | ||
ERROR: No matching distribution found for foobar32 | ||
|
||
[notice] A new release of pip available: 22.3.1 -> 24.0 | ||
[notice] To update, run: python.exe -m pip install --upgrade pip |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import logging | ||
import sys | ||
handler = logging.StreamHandler(sys.stdout) | ||
handler.setLevel(logging.DEBUG) | ||
#formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') | ||
#handler.setFormatter(formatter) | ||
|
||
root = logging.getLogger() | ||
root.addHandler(handler) | ||
root.setLevel(logging.DEBUG) | ||
logging.debug("A") | ||
logging.info("B") | ||
logging.log(logging.DEBUG,"C") | ||
print("\nD E") |
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
Oops, something went wrong.