Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-10-2014, 07:34 AM
raistlin raistlin is online now
Registered User
 
Join Date: 11-14-2008
Posts: 23
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. 
vbldLogLevelError 1 Only error level messages will be logged. 
vbldLogLevelWarning 2 Only error and warning level error messages will be logged. 
vbldLogLevelNormal 3 Errors, warnings, and normal level error messages will be logged. 
vbldLogLevelDetailed 4 Errors, warnings, normal, and detailed error messages will be logged. 
vbldLogLevelDiagnostic 5 Errors, warnings, normal, detailed, and diagnostic error messages will be logged.
But the number associated with these parameters are off by 1.
vbldLogLevelNone starts at -1, vbldLogLevelError at 0 and so on.

I tested this with:

Code:
Builder.LogMessage2 "vbldLogLevelError = " & vbldLogLevelError, vbldLogLevelError
Reply With Quote
  #2  
Old 11-10-2014, 08:10 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
You're right, the values in the help are off by one.
Reply With Quote
  #3  
Old 11-10-2014, 08:26 AM
raistlin raistlin is online now
Registered User
 
Join Date: 11-14-2008
Posts: 23
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.
Reply With Quote
  #4  
Old 11-10-2014, 09:25 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
No, there isn't a way to get that info.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 12:39 PM.


Copyright © 1999-2023 Kinook Software, Inc.