Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 8
Registered: ‎03-21-2019
Accepted Solution

Log levels for Imagine 2018

Hello,

 

I'm developping a plugin for Imagine 2018 using its SDK.

 

I don't find the way of controlling the verbosity / log level for the session. In the log/Log.h file of the include folder, there are several levels defined:

 

enum LOGGING_LEVEL
{
	TRACE_LOG_LEVEL,
	DEBUG_LOG_LEVEL,
	INFO_LOG_LEVEL,
	WARN_LOG_LEVEL,
	ERROR_LOG_LEVEL,
	FATAL_LOG_LEVEL
};	

However, I am not able to see the messages for levels INFO_LOG_LEVEL and DEBUG_LOG_LEVEL. I think I need to change the verbosity level somewhere, but I don't find it.

 

Is there a way to do it, using the methods of the Log object, or the menus of Imagine?

 

Thanks,

 

Eloy Alfonso

Technical Evangelist
Posts: 31
Registered: ‎09-10-2015

Re: Log levels for Imagine 2018

The configuration of the logging is contained in an external configuration file, etc/SessionLogging.cfg, in the installation directory. You can either alter this file or, more commonly, alter a copy in your PERSONAL directory (C:\Users\<user name>\.imagine1650\etc\SessionLogging.cfg should work in x64 configurations).

Occasional Contributor
Posts: 8
Registered: ‎03-21-2019

Re: Log levels for Imagine 2018

Worked like a charm.

 

Thank you!

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.