本文整理汇总了C#中ILogProvider.GetLogger方法的典型用法代码示例。如果您正苦于以下问题:C# ILogProvider.GetLogger方法的具体用法?C# ILogProvider.GetLogger怎么用?C# ILogProvider.GetLogger使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ILogProvider
的用法示例。
在下文中一共展示了ILogProvider.GetLogger方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProcessingEngine
public ProcessingEngine(
IPluginsContainer<ICommandImplementation> commandRepository,
IPluginsContainer<ICommandObserver> commandObservers,
ILogProvider logProvider,
IPersistenceTransaction persistenceTransaction,
IAuthorizationManager authorizationManager,
XmlUtility xmlUtility,
IUserInfo userInfo,
ISqlUtility sqlUtility,
ILocalizer localizer)
{
_commandRepository = commandRepository;
_commandObservers = commandObservers;
_logger = logProvider.GetLogger("ProcessingEngine");
_performanceLogger = logProvider.GetLogger("Performance");
_requestLogger = logProvider.GetLogger("ProcessingEngine Request");
_commandsLogger = logProvider.GetLogger("ProcessingEngine Commands");
_commandsResultLogger = logProvider.GetLogger("ProcessingEngine CommandsResult");
_persistenceTransaction = persistenceTransaction;
_authorizationManager = authorizationManager;
_xmlUtility = xmlUtility;
_userInfo = userInfo;
_sqlUtility = sqlUtility;
_localizer = localizer;
}
示例2: MsSqlExecuter
public MsSqlExecuter(ConnectionString connectionString, ILogProvider logProvider, IUserInfo userInfo)
{
_connectionString = connectionString;
_userInfo = userInfo;
_logger = logProvider.GetLogger("MsSqlExecuter");
_performanceLogger = logProvider.GetLogger("Performance");
}
示例3: DataMigration
public DataMigration(ISqlExecuter sqlExecuter, ILogProvider logProvider, IInstalledPackages installedPackages)
{
_sqlExecuter = sqlExecuter;
_logger = logProvider.GetLogger("DataMigration");
_deployPackagesLogger = logProvider.GetLogger("DeployPackages");
_installedPackages = installedPackages;
}
示例4: DslModel
public DslModel(IDslParser dslParser, ILogProvider logProvider)
{
_dslParser = dslParser;
_performanceLogger = logProvider.GetLogger("Performance");
_logger = logProvider.GetLogger("DslModel");
_dslContainer = new DslContainer(logProvider);
}
示例5: DslParser
public DslParser(IDslSource dslSource, IConceptInfo[] conceptInfoPlugins, ILogProvider logProvider)
{
_dslSource = dslSource;
_conceptInfoPlugins = conceptInfoPlugins;
_performanceLogger = logProvider.GetLogger("Performance");
_logger = logProvider.GetLogger("DslParser");
}
示例6: DomLoader
public DomLoader(
string assemblyName,
ILogProvider logProvider)
{
_assemblyName = assemblyName;
_logger = logProvider.GetLogger("DomLoader");
_performanceLogger = logProvider.GetLogger("Performance");
}
示例7: MsSqlExecuter
/// <summary>
/// This constructor is typically used in run-time, when persistence transaction is active, in order to execute
/// the SQL queries in the same transaction.
/// </summary>
public MsSqlExecuter(ConnectionString connectionString, ILogProvider logProvider, IUserInfo userInfo, IPersistenceTransaction persistenceTransaction)
{
_connectionString = connectionString;
_userInfo = userInfo;
_logger = logProvider.GetLogger("MsSqlExecuter");
_performanceLogger = logProvider.GetLogger("Performance");
_persistenceTransaction = persistenceTransaction;
}
示例8: DslParser
public DslParser(Tokenizer tokenizer, IConceptInfo[] conceptInfoPlugins, ILogProvider logProvider)
{
_tokenizer = tokenizer;
_conceptInfoPlugins = conceptInfoPlugins;
_performanceLogger = logProvider.GetLogger("Performance");
_logger = logProvider.GetLogger("DslParser");
_keywordsLogger = logProvider.GetLogger("DslParser.Keywords");
}
示例9: DataMigration
public DataMigration(ISqlExecuter sqlExecuter, ILogProvider logProvider, IDataMigrationScriptsProvider scriptsProvider, IConfiguration configuration)
{
_sqlExecuter = sqlExecuter;
_logger = logProvider.GetLogger("DataMigration");
_deployPackagesLogger = logProvider.GetLogger("DeployPackages");
_scriptsProvider = scriptsProvider;
_configuration = configuration;
}
示例10: WcfWindowsUserInfo
public WcfWindowsUserInfo(ILogProvider logProvider, IWindowsSecurity windowsSecurity)
{
_logger = logProvider.GetLogger(GetType().Name);
_performanceLogger = logProvider.GetLogger("Performance");
_isUserRecognized = new Lazy<bool>(() => InitIsUserRecognized());
_userName = new Lazy<string>(() => InitUserName());
_workstation = new Lazy<string>(() => windowsSecurity.GetClientWorkstation());
_windowsIdentity = new Lazy<WindowsIdentity>(() => InitWindowsIdentity());
}
示例11: CaptionsValueProvider
public CaptionsValueProvider(
IDslModel dslModel,
IPluginsContainer<ICaptionsValuePlugin> plugins,
ILogProvider logProvider)
{
_dslModel = dslModel;
_plugins = plugins;
_logger = logProvider.GetLogger("CaptionsValueGenerator");
_performanceLogger = logProvider.GetLogger("Performance");
}
示例12: WcfWindowsUserInfo
public WcfWindowsUserInfo(ILogProvider logProvider)
{
_logger = logProvider.GetLogger("WcfWindowsUserInfo");
_performanceLogger = logProvider.GetLogger("Performance");
_isUserRecognized = new Lazy<bool>(() => InitIsUserRecognized());
_userName = new Lazy<string>(() => InitUserName());
_workstation = new Lazy<string>(() => InitClientWorkstation());
_windowsIdentity = new Lazy<WindowsIdentity>(() => InitWindowsIdentity());
_accountName = new Lazy<string>(() => InitAccountName());
}
示例13: CaptionsGenerator
public CaptionsGenerator(
IPluginsContainer<ICaptionsGeneratorPlugin> plugins,
ICodeGenerator codeGenerator,
ILogProvider logProvider
)
{
_plugins = plugins;
_codeGenerator = codeGenerator;
_logger = logProvider.GetLogger("CaptionsGenerator");
_sourceLogger = logProvider.GetLogger("Mvc Captions source");
}
示例14: ClaimGenerator
public ClaimGenerator(
IPluginsContainer<IClaimProvider> claimProviders,
IDslModel dslModel,
IDomainObjectModel domainObjectModel,
ILogProvider logProvider,
IClaimRepository claimRepository)
{
_claimProviders = claimProviders;
_dslModel = dslModel;
_performanceLogger = logProvider.GetLogger("Performance");
_logger = logProvider.GetLogger("ClaimGenerator");
_claimRepository = claimRepository;
}
示例15: ProcessingEngine
public ProcessingEngine(
IPluginsContainer<ICommandImplementation> commandRepository,
IPluginsContainer<ICommandObserver> commandObservers,
ILogProvider logProvider,
IPersistenceTransaction persistenceTransaction,
IAuthorizationManager authorizationManager)
{
_commandRepository = commandRepository;
_commandObservers = commandObservers;
_logger = logProvider.GetLogger("ProcessingEngine");
_performanceLogger = logProvider.GetLogger("Performance");
_persistenceTransaction = persistenceTransaction;
_authorizationManager = authorizationManager;
}