GeoEco.Logging.Logger
- class GeoEco.Logging.Logger
Bases:
objectProvides functions for reporting messages to the user from the GeoEco package.
This class wraps the Python
loggingmodule. Callers outside of the GeoEco package may use this class but we recommend they useloggingdirectly instead.This class logs all messages to the
GeoEcologging channel. Parts of the GeoEco package log to other channels. To see what these are, consult the fileGeoEco/Configuration/Logging.ini.Note
Do not instantiate this class. It is a collection of classmethods intended to be invoked on the class rather than an instance of it, like this:
from GeoEco.Logging import Logger Logger.Info('Hello, world!')
Methods
Instructs
Loggerto stop queuing messages destined for ArcGIS and release any that are currently queued up.Reports a debugging message to the user.
Reports an error message to the user.
Returns True if errors are currently set to be logged as warnings.
Returns True if informational messages are currently set to be logged as debug messages.
Reports an informational message to the user.
Initializes the logging system.
Logs a Python exception caught by a GeoEco class as an error message and additional information as debug messages.
Logs a Python exception caught by a GeoEco class as a warning message and additional information as debug messages.
Reports an informational message and then calls
Logger.LogInfoAsDebug(True)and returns its value.Raises a Python exception and logs it as an error message and additional information as debug messages.
Enable or disable the logging of errors as warnings.
Enable or disable the logging of informational messages as debug messages.
Reports a warning message to the user.