labs
Wrapper module for pyRevitLabs functionality.
Attributes
mlogger = logger.get_logger(__name__)
module-attribute
config = NLog.Config.LoggingConfiguration()
module-attribute
target = PyRevitOutputTarget()
module-attribute
nlog_mlogger = NLog.LogManager.GetLogger(__name__)
module-attribute
Classes
PyRevitOutputTarget
Bases: TargetWithLayout
NLog target to direct log messages to pyRevit output window.
Functions
Write(asyncLogEvent)
Write event handler.
Source code in pyrevitlib/pyrevit/labs.py
convert_level(nlog_level)
Convert Nlog levels to pything logging levels.
Source code in pyrevitlib/pyrevit/labs.py
Functions
extract_build_from_exe(proc_path)
Extract build number from host .exe file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
proc_path |
str
|
full path of the host .exe file |
required |
Returns:
Type | Description |
---|---|
str
|
build number (e.g. '20170927_1515(x64)') |