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}";
     }
 }
Exemplo n.º 2
0
 protected abstract void ExecuteImplementation(LogItem logItem, GRYLog logObject);
Exemplo n.º 3
0
 internal void Execute(LogItem logItem, GRYLog logObject)
 {
     this.ExecuteImplementation(logItem, logObject);
 }