You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2017/01/16 10:29:26 UTC
[jira] [Updated] (IGNITE-4549) .NET: Add LINQPad samples to logging
NuGet packages
[ https://issues.apache.org/jira/browse/IGNITE-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Tupitsyn updated IGNITE-4549:
-----------------------------------
Description:
Add LINQPad samples to Log4Net and NLog NuGet packages.
Samples should include simple in-code file-based log configuration and writing to the log.
NLog example can be like this:
{code}
var nlogConfig = new LoggingConfiguration();
var fileTarget = new FileTarget
{
FileName = "ignite_nlog.log"
};
nlogConfig.AddTarget("logfile", fileTarget);
nlogConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, fileTarget));
LogManager.Configuration = nlogConfig;
var igniteConfig = new IgniteConfiguration
{
Logger = new IgniteNLogLogger()
};
Ignition.Start(igniteConfig);
{code}
was:
Add LINQPad samples to Log4Net and NLog NuGet packages.
Samples should include simple in-code file-based log configuration and writing to the log.
> .NET: Add LINQPad samples to logging NuGet packages
> ---------------------------------------------------
>
> Key: IGNITE-4549
> URL: https://issues.apache.org/jira/browse/IGNITE-4549
> Project: Ignite
> Issue Type: Improvement
> Components: platforms
> Affects Versions: 1.8
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Trivial
> Labels: .NET, newbie
> Fix For: 2.0
>
>
> Add LINQPad samples to Log4Net and NLog NuGet packages.
> Samples should include simple in-code file-based log configuration and writing to the log.
> NLog example can be like this:
> {code}
> var nlogConfig = new LoggingConfiguration();
> var fileTarget = new FileTarget
> {
> FileName = "ignite_nlog.log"
> };
> nlogConfig.AddTarget("logfile", fileTarget);
> nlogConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, fileTarget));
> LogManager.Configuration = nlogConfig;
> var igniteConfig = new IgniteConfiguration
> {
> Logger = new IgniteNLogLogger()
> };
> Ignition.Start(igniteConfig);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)