ArcStache.ComLogUtil.LogError C# (CSharp) Метод

LogError() публичный Метод

Logs the error.
public LogError ( string className, string publicMethodName, string parameters, Exception ex ) : void
className string Name of the source class.
publicMethodName string Name of the public method.
parameters string The method parameters.
ex System.Exception The exception.
Результат void
        public void LogError(string className, string publicMethodName, string parameters, Exception ex)
        {
            this.Log(LogLevel.Error, string.Format("{0}::{1}{2}params: {3}{4}Exception: {5}", className, publicMethodName, Environment.NewLine, parameters, Environment.NewLine, ex.ToString()));
        }

Same methods

ComLogUtil::LogError ( string className, string publicMethodName, string parameters, string message, Exception ex ) : void

Usage Example

Пример #1
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");
            }
        }
All Usage Examples Of ArcStache.ComLogUtil::LogError