NLog.Config.LoggingRule.LoggingRule C# (CSharp) Method

LoggingRule() public method

Initializes a new instance of the LoggingRule class.
By default no logging levels are defined. You should call EnableLoggingForLevel and DisableLoggingForLevel to set them.
public LoggingRule ( string loggerNamePattern, Target target ) : System
loggerNamePattern string Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends.
target Target Target to be written to when the rule matches.
return System
        public LoggingRule(string loggerNamePattern, Target target)
        {
            this.Filters = new List<Filter>();
            this.ChildRules = new List<LoggingRule>();
            this.Targets = new List<Target>();
            this.LoggerNamePattern = loggerNamePattern;
            this.Targets.Add(target);
        }

Same methods

LoggingRule::LoggingRule ( ) : System
LoggingRule::LoggingRule ( string loggerNamePattern, NLog.LogLevel minLevel, Target target ) : System