Exemplo n.º 1
0
 private SpyLogger(IBuildEngine buildEngine, string taskName)
     : base(buildEngine, taskName)
 {
     buildEngine.WhenAny(e => e.LogMessageEvent(null))
                .Do<BuildMessageEventArgs>(Log);
     buildEngine.WhenAny(e => e.LogWarningEvent(null))
                .Do<BuildWarningEventArgs>(Log);
     buildEngine.WhenAny(e => e.LogErrorEvent(null))
                .Do<BuildErrorEventArgs>(Log);
 }
Exemplo n.º 2
0
 private SpyLogger(IBuildEngine buildEngine, string taskName)
     : base(buildEngine, taskName)
 {
     buildEngine.WhenAny(e => e.LogMessageEvent(null))
     .Do <BuildMessageEventArgs>(Log);
     buildEngine.WhenAny(e => e.LogWarningEvent(null))
     .Do <BuildWarningEventArgs>(Log);
     buildEngine.WhenAny(e => e.LogErrorEvent(null))
     .Do <BuildErrorEventArgs>(Log);
 }
Exemplo n.º 3
0
    private SpyLogger(IBuildEngine buildEngine, string taskName, bool includeSourceInformation)
        : base(buildEngine, taskName)
    {
        this.includeSourceInformation = includeSourceInformation;

        buildEngine.WhenAny(e => e.LogMessageEvent(null))
        .Do <BuildMessageEventArgs>(Log);
        buildEngine.WhenAny(e => e.LogWarningEvent(null))
        .Do <BuildWarningEventArgs>(Log);
        buildEngine.WhenAny(e => e.LogErrorEvent(null))
        .Do <BuildErrorEventArgs>(Log);
    }
Exemplo n.º 4
0
    private SpyLogger(IBuildEngine buildEngine, string taskName, bool includeSourceInformation)
        : base(buildEngine, taskName)
    {
        this.includeSourceInformation = includeSourceInformation;

        buildEngine.WhenAny(e => e.LogMessageEvent(null))
                   .Do<BuildMessageEventArgs>(Log);
        buildEngine.WhenAny(e => e.LogWarningEvent(null))
                   .Do<BuildWarningEventArgs>(Log);
        buildEngine.WhenAny(e => e.LogErrorEvent(null))
                   .Do<BuildErrorEventArgs>(Log);
    }