public static void Log(ILogComponent component, object message) { if (component.isLoggingEnabled()) { UnityEngine.Debug.LogFormat("[TRACE][{0}][{1}] {2}", applicationTag_, component.getLogComponentName(), message); } }
public Train(int id, string name, int maxSpeed, bool operated, ILogComponent trainLog, IEngineComponent engineComponent, IPassengerCartComponent passengerCartComponent) { this.ID = id; this.Name = name; this.MaxSpeed = maxSpeed; this.Operated = operated; this.LogComponent = trainLog; this.EngineComponent = engineComponent; this.PassengerCartComponent = passengerCartComponent; }
public static void ErrorFormat(ILogComponent component, string template, params object[] args) { var message = string.Format(template, args); LogError(component, message); }