core.py
Others:
This definition defines logging verbosity level.
Available verbosity levels:
0: Critical.
1: Error.
2: Warning.
3: Info.
4: Debug.
| Parameters: | verbosityLevel – Verbosity level. ( Integer ) |
|---|---|
| Returns: | Definition success. ( Boolean ) |
This definition returns requested execution frame.
| Parameters: | level – Frame index. ( Integer ) |
|---|---|
| Returns: | Frame. ( Frame ) |
This definition returns first candidate frame code layer name.
| Returns: | Code layer name. ( String ) |
|---|---|
| Note : | Candidates names matching any foundations.core.IGNORED_CODE_LAYERS members will be skipped. If no appropriate candidate name is found, then foundations.core.UNDEFINED_CODE_LAYER is returned. |
This definition returns given object module name.
| Parameters: | object – Object. ( Object ) |
|---|---|
| Returns: | Frame Module. ( Module ) |
This definition returns object name composited with current execution frame.
Examples names:
'foundations.environment | getUserApplicationDataDirectory()'.
'__main__ | _setUserApplicationDataDirectory()'.
'__main__ | Preferences.__init__()'.
'UndefinedObject'.
| Parameters: | object – Object. ( Object ) |
|---|---|
| Returns: | Object name. ( String ) |
| Parameters: |
|
|---|---|
| Returns: | Stack. ( List ) |
Entering in an object:
DEBUG : --->>> 'foundations.environment | getUserApplicationDataDirectory()' <<<---
Exiting from an object:
DEBUG : --->>> 'foundations.environment | getSystemApplicationDataDirectory()' <<<---
| Parameters: | object – Object to decorate. ( Object ) |
|---|---|
| Returns: | Object. ( Object ) |
| Parameters: | object – Object to decorate. ( Object ) |
|---|---|
| Returns: | Object. ( Object ) |
| Parameters: | cache – Alternate cache. ( Dictionary ) |
|---|---|
| Returns: | Object. ( Object ) |
This definition removes given logging handler from given logger.
| Parameters: |
|
|---|---|
| Returns: | Definition success. ( Boolean ) |
This definition shuts down current process logging, associated handlers and then exits to system.
| Parameters: | exitCode – System exit code. ( Integer / String / Object ) |
|---|---|
| Note : | exitCode argument is passed to Python sys.exit() definition. |
Bases: object
| Parameters: | logger – Logger. ( Object ) |
|---|