public static ILogging CreateProxy(this ILoggingBase self, string prefix, MyLogSeverity level) { return(new LoggingProxy(self, prefix) { Level = level }); }
public GridMeteorShower(ILoggingBase rootLogger, params Meteor[] impacts) { Logger = rootLogger.CreateProxy(GetType().Name); foreach (var f in impacts) { m_impactDirectionRadius.Add(f); } }
public RoomRemapper(ILoggingBase root) { Logger = root.CreateProxy(GetType().Name); m_allPre.Add(new GridRemap_Names(root)); m_allPre.Add(new Coloring(root)); m_allPre.Add(new GridRemap_Ownership(root)); m_primary.Add(new GridRemap_LocalTransform(root)); m_auxiliary.Add(new GridRemap_WorldTransform(root)); DebugRoomColors = Settings.DebugDrawRoomColors; }
protected LoggingSessionComponent() { m_logger = null; var builder = new StringBuilder(48); builder.Append(GetType().Name).Append(' '); var simpleName = builder.ToString(); DependsOn((LoggerBase y) => { RootLogger = y; m_logger = y?.CreateProxy(simpleName); }); }
public static ILogging CreateProxy(this ILoggingBase logger, Type type) { var match = type.FullName ?? ""; MyLogSeverity?result = null; while (match.Length > 0) { MyLogSeverity severity; if (_levels.TryGetValue(match, out severity)) { result = severity; break; } var i = match.LastIndexOf('.'); if (i < 0) { break; } match = match.Substring(0, i); } return(logger.CreateProxy(type.Name, result ?? _levels[""])); }
public GridRemap_WorldTransform(ILoggingBase root) : base(root) { }
public static ILogging CreateProxy(this ILoggingBase self, string prefix) { return(new LoggingProxy(self, prefix)); }
public GridRemap_LocalDamage(ILoggingBase root) : base(root) { Seed = 0; DamageOffset = 0.5; }
protected IGridRemap(ILoggingBase root) { Logger = root.CreateProxy(GetType().Name); }
public LoggingProxy(ILoggingBase backing, string prefix) { Backing = backing; Prefix = prefix + " "; }
public Coloring(ILoggingBase root) : base(root) { }
public GridRemap_Ownership(ILoggingBase root) : base(root) { }
public GridRemap_Names(ILoggingBase root) : base(root) { }
public GridRemap_LocalTransform(ILoggingBase root) : base(root) { }