-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add unittests to ensure that FastLogger of the default de_sim.debug.f…
…ile logger at 'debug' level is not active; change names of handlers and loggers in examples & testing to prevent conflicts; BE CAREFUL: loggers AND handlers ARE ALL GLOBAL!; make config/core.py debuggable
- Loading branch information
1 parent
a24c3d5
commit 2a709c1
Showing
11 changed files
with
85 additions
and
24 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
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,20 +1,20 @@ | ||
# log config for the wc simulator examples | ||
[debug_logs] | ||
[[handlers]] | ||
[[[debug.file]]] | ||
[[[debug.example.file]]] | ||
class = FileHandler | ||
filename = ~/.wc/log/de_sim.debug.log | ||
level = debug | ||
|
||
[[[debug.console]]] | ||
[[[debug.example.console]]] | ||
class = StdOutHandler | ||
level = info | ||
|
||
[[loggers]] | ||
[[[de_sim.debug.file]]] | ||
[[[de_sim.debug.example.file]]] | ||
template = {timestamp}; {name:s}; {level:s}; {source}:{function:s}:{line:d}; {message:s} | ||
handler = debug.file | ||
handler = debug.example.file | ||
|
||
[[[de_sim.debug.console]]] | ||
[[[de_sim.debug.example.console]]] | ||
template = {timestamp}; {name:s}; {level:s}; {source}:{function:s}:{line:d}; {message:s} | ||
handler = debug.console | ||
handler = debug.example.console |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# log config for the discrete event simulator, de_sim | ||
[debug_logs] | ||
[[handlers]] | ||
[[[debug.testing.file]]] | ||
class = FileHandler | ||
filename = ~/tmp/.wc/log/de_sim.debug.testing.log | ||
level = info | ||
|
||
[[[debug.testing.console]]] | ||
class = StdOutHandler | ||
level = warning | ||
|
||
[[loggers]] | ||
[[[de_sim.debug.testing.file]]] | ||
template = {timestamp}; {name:s}; {level:s}; {source}:{function:s}:{line:d}; {sim_time:f}; {message:s} | ||
handler = debug.testing.file | ||
[[[[additional_context]]]] | ||
sim_time = get_sim_time | ||
|
||
[[[de_sim.debug.testing.console]]] | ||
template = {timestamp}; {name:s}; {level:s}; {source}:{function:s}:{line:d}; {sim_time:f}; {message:s} | ||
handler = debug.testing.console | ||
[[[[additional_context]]]] | ||
sim_time = get_sim_time |
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