public GRYLogSubNamespaceProvider(GRYLog logObject, string subnamespace) { this._LogObject = logObject; subnamespace = subnamespace.Trim(); this._SubNamespace = subnamespace; this._OriginalNamespace = this._LogObject.Configuration.Name; if (!string.IsNullOrEmpty(subnamespace)) { string prefix; if (string.IsNullOrEmpty(this._LogObject.Configuration.Name)) { prefix = string.Empty; } else { prefix = $"{this._LogObject.Configuration.Name}."; } this._LogObject.Configuration.Name = $"{prefix}{this._SubNamespace}"; } }
protected abstract void ExecuteImplementation(LogItem logItem, GRYLog logObject);
internal void Execute(LogItem logItem, GRYLog logObject) { this.ExecuteImplementation(logItem, logObject); }