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); } }
public Log(String Name) { _log = Scarfsail.Logging.Ext.EventID.EventIDLogManager.GetLogger(Name); }
public Log(Type callerType) { _log = Scarfsail.Logging.Ext.EventID.EventIDLogManager.GetLogger(callerType.Assembly, callerType); LogAssemblyVersion(callerType.Assembly); }