| Version 3 (modified by jjr8, 6 years ago) |
|---|
Configuring MGET logging
MGET reports many processing details using Python's built-in logging facility. By default, most of this logging is turned off. To maximize performance, we recommend you leave it off until you need to debug a failure.
How logging works
Before MGET can perform any logging at all, the logging system must be initialized. This happens automatically when an MGET geoprocessing tool is executed from ArcGIS, but must be performed manually when you want to call MGET functions from Python or another programming language:
>>> from GeoEco.Logging import Logger >>> Logger.Initialize()
The initialization function attempts to configure the logging settings by:
- Reading the file Logging.ini from the GeoEco subdirectory of the user's Application Data directory, e.g. C:\Documents and Settings\jason\Application Data\GeoEco\Logging.ini
- If that fails, it tries to read the default Logging.ini file from the GeoEco Python package installation directory, e.g. C:\Python24\Lib\site-packages\GeoEco\Configuration\Logging.ini
- If that fails, it uses hard-coded settings, which cause all messages with the severity INFO, WARNING, or ERROR to be logged to stdout.
MGET processes all subsequent logging messages according teo the settings that were configured.
Enabling verbose logging
To cause all messages to be logged to the ArcGIS geoprocessing window and stdout:
- Start My Computer.
- Go to the address bar and type in %APPDATA% and press Enter. This will display the Application Data directory for your user account.
- Create a new directory called GeoEco
- Download the file Logging.ini and save it to the GeoEco directory.



