LogInfo() public méthode

Logs the info.
public LogInfo ( string className, string publicMethodName, string message ) : void
className string Name of the source class.
publicMethodName string Name of the public method.
message string The message.
Résultat void
Exemple #1
0
        public void Shutdown()
        {
            const string methodName = "Shutdown";

            logger.LogMessage(ServerLogger.msgType.debug, methodName, 9999, "firing!");
            _dtsLogger.LogInfo(soe_name, methodName, "firing");
        }
Exemple #2
0
        public void Construct(IPropertySet props)
        {
            const string methodName = "Construct";

            configProps = props;

            logger.LogMessage(ServerLogger.msgType.debug, methodName, 9999, "firing!");

            try
            {
                // Initialize our logger. Creates the folder and file if it doesn't already exist.
                _dtsLogger = new ComLogUtil();
                _dtsLogger.FileName = soe_name + "_Log.txt";
                _dtsLogger.LogInfo(soe_name, methodName, "DTSAgile logger initialized.");

                // Set the root cache directory the tiles should be written to
                // TODO:  Do we want the root location to be configurable??
                var rootDir =  @"C:\arcgis\" + soe_name;
                _vectorCacheRootDirectory = System.IO.Path.Combine(rootDir, this.CreateMapServiceCacheFolderName());

                this.ValidateMapServiceSpatialReference();
            }
            catch (Exception ex)
            {
                _dtsLogger.LogError(soe_name, methodName, "none", ex);
                logger.LogMessage(ServerLogger.msgType.error, methodName, 9999, "Failed to get ServerObject::ConfigurationName");
            }
        }
Exemple #3
0
        public void Construct(IPropertySet props)
        {
            const string methodName = "Construct";

            configProps = props;

            logger.LogMessage(ServerLogger.msgType.debug, methodName, 9999, "firing!");

            try
            {
                // Initialize our logger. Creates the folder and file if it doesn't already exist.
                _dtsLogger          = new ComLogUtil();
                _dtsLogger.FileName = soe_name + "_Log.txt";
                _dtsLogger.LogInfo(soe_name, methodName, "DTSAgile logger initialized.");

                // Set the root cache directory the tiles should be written to
                // TODO:  Do we want the root location to be configurable??
                var rootDir = @"C:\arcgis\" + soe_name;
                _vectorCacheRootDirectory = System.IO.Path.Combine(rootDir, this.CreateMapServiceCacheFolderName());

                this.ValidateMapServiceSpatialReference();
            }
            catch (Exception ex)
            {
                _dtsLogger.LogError(soe_name, methodName, "none", ex);
                logger.LogMessage(ServerLogger.msgType.error, methodName, 9999, "Failed to get ServerObject::ConfigurationName");
            }
        }