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