Exemplo n.º 1
0
        private Log(MethodBase callerMethod)
        {
            Type callerType;

            if ((callerType = callerMethod.DeclaringType) != null)
            {
                _log = Scarfsail.Logging.Ext.EventID.EventIDLogManager.GetLogger(callerType.Assembly, callerType);
            }
            else
            {
                _log = Scarfsail.Logging.Ext.EventID.EventIDLogManager.GetLogger(callerMethod.Name);
            }
        }
Exemplo n.º 2
0
 public Log(String Name)
 {
     _log = Scarfsail.Logging.Ext.EventID.EventIDLogManager.GetLogger(Name);
 }
Exemplo n.º 3
0
        public Log(Type callerType)
        {
            _log = Scarfsail.Logging.Ext.EventID.EventIDLogManager.GetLogger(callerType.Assembly, callerType);

            LogAssemblyVersion(callerType.Assembly);
        }