It seems that by default if I run the OpenStudio cli from a terminal, it'll only output WARN
(and probably ERROR
)
For example, if I run the compact_osw
example that ships with OpenStudio:
$ /usr/local/openstudio-2.0.0/bin/openstudio run -w compact.osw
[12:27:14.989831 WARN] Measure couldn't find the construction named 'EXTERIOR-WALL adj exterior wall insulation' in the exterior surface hash.
If I run it from Python though, the stdout
shows also INFO, DEBUG, etc. Here's an excerpt:
[12:36:29.995419 DEBUG] Iterating over arguments for workflow item 'IncreaseRoofRValue'
[12:36:29.995592 INFO] Setting argument value 'r_value' to '45'
[12:36:29.995673 DEBUG] Calling measure.run for 'IncreaseRoofRValue'
[12:36:29.997495 INFO] The building had 1 roof constructions: EXTERIOR-ROOF (R-31.2).
[12:36:30.002381 INFO] For construction'EXTERIOR-ROOF adj roof insulation', material'Mineral Fiber Batt Insulation - 10 in._R-value 45.0% increase' was altered.
[12:36:30.006144 WARN] Measure couldn't find the construction named 'EXTERIOR-WALL adj exterior wall insulation' in the exterior surface hash.
[12:36:30.010419 INFO] The existing insulation for roofs was increased by 45.0%. This was applied to 885 (ft^2) across 1 roof constructions: EXTERIOR-ROOF adj roof insulation (R-44.2).
In Python I can easily filter out certain lines using a regex pattern, but when running in terminal, I might want to see the INFO
messages as well.
Are there any flags to the CLI that woud allow to customize the level of output? I can't see anything in the doc.