Commit e5cc214
WIP - Feat/ main logger (#640)
* Added procedure for silently omitting some commands (`/NOPR` for example.
* Added test cases for invalid commands and invalid silent commands.
* Format fixing
* Added names to pool instances.
* First implementation of main logger.
* Second revision.
* small changes in log.
* Replacing default logger with pyansys logger.
* Replacing logger with pyansys logger.
* adding last_logger atributte.
* Fixing logger hierachy and file header format.
* Replacing old logger by new one.
* Replacing old logger by new one.
* Fixing instance name input.
* Replacing old logger. Fix.
* Creating tests for log
* Added log tests.
* Using `__name__` instead of hardcoding the name of the loggers.
* Added uncaught exception recording.
* Fixing style
* Adding ``file_record`` and ``console_output`` options to suppress file or console output.
* Adding thread naming.
* Major revamp.
`getLogger` got splitted in several functions to simplify reading.
Added documentation at the head of the file.
* Added documentation.
* Updating modules to match the new log module calling method.
* New revamp of the logger classes
* Updating the calls to the logger.
* Implementing alex comment.
We forgot about distintion between threaded and normal mapdl execution.
We use now instances, which has unique name.
* Updating log module calls
* updating log module calls and removing arguments from logs.
* Added property name and logger.
Also the __getitem__ to get the name from the instance, this is later used for LoggerAdapter
* Adding call to loger and name attribute.
* Again, big changes. Now the format is not conditional upon having or not threads.
It is all based in instances of MAPDL.
* Renaming the library and retooling some parts of the code.
* Updating the logging library call.
* Externalized function to add handlers to logger.
Fix issue with conflicting ``supress_logging`` function.
* Updated modules to function with new logging module.
* Added functions for logging to file or stdout
Added test
* Added info.
* Cleaning up
* Added configuration for copying handlers.
* Updated LOG call.
* Added loglevel to instance logger.
* Fixing style
* Fixing style
* Fix style.
* Fix style.
* Grammar fix.
* Removing walrus operator.
* Deleting old test log.
* Added review suggestions.
* Added review suggestions.
* Applying review comments.
Removed the __getitem__ method to use 'get_mame'.
* Spacing changes.
* Fixing logging tests.
* Spacing fixing.
* Added logging documentation.
* Fixed rst format.
* fix py37-38 difference; fix CORBA
* misc cleanup
Co-authored-by: Alex Kaszynski <[email protected]>1 parent 46f2d53 commit e5cc214
File tree
11 files changed
+994
-61
lines changed- ansys/mapdl/core
- doc/source
- tests
11 files changed
+994
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
0 commit comments