-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add process listener to analyze tools output
Issue: #4
- Loading branch information
1 parent
f758fe3
commit c1f1778
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotnet/logger/DotnetLogger.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2000-2016 JetBrains s.r.o. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* See LICENSE in the project root for license information. | ||
*/ | ||
|
||
package jetbrains.buildServer.dotnet.logger | ||
|
||
import jetbrains.buildServer.agent.BuildProgressLogger | ||
import jetbrains.buildServer.agent.runner.ProcessListenerAdapter | ||
|
||
/** | ||
* .NET Core logger. | ||
*/ | ||
open class DotnetLogger(private val myLogger: BuildProgressLogger) : ProcessListenerAdapter() { | ||
override fun onStandardOutput(text: String) { | ||
myLogger.message(text) | ||
} | ||
|
||
override fun onErrorOutput(text: String) { | ||
myLogger.error(text) | ||
} | ||
|
||
override fun processFinished(exitCode: Int) { | ||
super.processFinished(exitCode) | ||
} | ||
} |