예제 #1
0
파일: Logger.cs 프로젝트: gpanayir/sffwk
        /// <summary>
        /// Constructor de Logger.
        /// </summary>
        public Logger()
        {
            appId = Fwk.Bases.ConfigurationsHelper.HostApplicationName;
            try
            {
                _LoggingSection = ConfigurationManager.GetSection("FwkLogging") as LoggingSection;
            }
            catch (System.Configuration.ConfigurationException ex)
            {

                TechnicalException te = new
                    TechnicalException("Hay problemas al intentar cargar la configuracion FwkLogging. \r\n ", ex);
                te.Assembly = "Fwk.Logging";
                te.Class = "LoginSection";
                te.ErrorId = "9002";
                te.Namespace = "Fwk.Logging";
                te.UserName = Environment.UserName;
                te.Machine = Environment.MachineName;
                throw te;
            }
        }
예제 #2
0
 public frmLoggingTest()
 {
     InitializeComponent();
     txtFilePrefix.Text = string.Concat(DateTime.Now.Hour, "_", DateTime.Now.Minute, "_");
     _LoggingSection = System.Configuration.ConfigurationManager.GetSection("FwkLogging") as LoggingSection;
 }
예제 #3
0
        /// <summary>
        /// Constructor de Logger.
        /// </summary>
        static StaticLogger()
        {
            _LoggingSection = ConfigurationManager.GetSection("FwkLogging") as LoggingSection;

        }