override fun handle()

in plugin-bazel-event-service/src/main/kotlin/bazel/handlers/build/BuildToolLogsHandler.kt [14:29]


    override fun handle(ctx: BuildEventHandlerContext): Boolean {
        if (!ctx.event.hasBuildToolLogs()) {
            return false
        }

        if (ctx.verbosity.atLeast(Verbosity.Verbose)) {
            ctx.event.buildToolLogs.logList
                .filter { !it.name.isEmpty() }
                .forEach {
                    val file = fileConverter.convert(it)
                    ctx.writer.message("$file".apply(Color.Items))
                }
        }

        return true
    }