Ejemplo n.º 1
0
 public static void Log(ILogComponent component, object message)
 {
     if (component.isLoggingEnabled())
     {
         UnityEngine.Debug.LogFormat("[TRACE][{0}][{1}] {2}", applicationTag_, component.getLogComponentName(), message);
     }
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
    public static void ErrorFormat(ILogComponent component, string template, params object[] args)
    {
        var message = string.Format(template, args);

        LogError(component, message);
    }