![]() |
How to propagate loglevel to child bld files?
Hi,
I would like to limit the amount of information / logs produced by my bld script to the console. I use Jenkins, so i would very much like to achieve a much smaller blueprint of logs. This is the command line i use for my continuous integration build: Code:
VisBuildcmd.exe Build.bld /loglevel vbldLogLevelError Now, when i have a child bld script that i call within Build.bld, /loglevel information is not propagated to that executing process, so i get a vbldLogLevelNormal verbosity from the child bld. How can i propagate /loglevel being parsed from the parent bld script, to child scripts? Thank you. Lee |
Pass in another macro value with the log level and use that when calling the child project, specifying the log level.
|
Thanks. Can you also include a small snippet with VBS on how to set the loglevel in the child when received?
On how to use the following: Code:
Options.LogLevel As LogLevelEnum Please excuse my inability to pickup VBS. Thanks for the help. |
Code:
Application.Options.LogLevel = %LEVEL_MACRO% |
Thank you.
|
I found an interesting observation. Please correct me if i am wrong. In the documentation, it says:
Code:
vbldLogLevelNone 0 No calls to LogMessage will be logged. vbldLogLevelNone starts at -1, vbldLogLevelError at 0 and so on. I tested this with: Code:
Builder.LogMessage2 "vbldLogLevelError = " & vbldLogLevelError, vbldLogLevelError |
You're right, the values in the help are off by one.
|
Thanks for clarifying.
Is there any variable to get the process' log level during execution? Application.Options.LogLevel only provided the settings set in Application Options > Logging (More) > Log level. I am thinking to get the log level parsed via /loglevel in command line parameter instead of it being parsed as a temp macro. Thanks. |
No, there isn't a way to get that info.
|
All times are GMT -5. The time now is 08:58 AM. |
Copyright © 1999-2023 Kinook Software, Inc.