Skip to content

//wire-compiler/com.squareup.wire/WireLogger

WireLogger

[jvm]\ interface WireLogger

Logger class used by WireRun and SchemaHandlers to log information related to processing the protobuf Schema.

Functions

Name Summary
artifactHandled [jvm]
abstract fun artifactHandled(outputPath: Path, qualifiedName: String, targetName: String)
This is called when an artifact is handled by a SchemaHandler.
artifactSkipped [jvm]
abstract fun artifactSkipped(type: ProtoType, targetName: String)
This is called when an artifact has been passed down to a SchemaHandler but has been skipped. This is useful for dry-runs.
unusedExcludesInTarget [jvm]
abstract fun unusedExcludesInTarget(unusedExcludes: Set<String>)
This is called if some excludes values have not been used by the target they were defined in. Note that excludes should contain package names (suffixed with .*) and type names only. It should not contain member names, nor file paths. Unused excludes can happen if the referenced type or service isn’t part of the parsed and pruned schema model, or has already been consumed by another preceding target.
unusedIncludesInTarget [jvm]
abstract fun unusedIncludesInTarget(unusedIncludes: Set<String>)
This is called if some includes values have not been used by the target they were defined in. Note that includes should contain package names (suffixed with .*) and type names only. It should not contain member names, nor file paths. Unused includes can happen if the referenced type or service isn’t part of the parsed and pruned schema model, or has already been consumed by another preceding target.
unusedPrunes [jvm]
abstract fun unusedPrunes(unusedPrunes: Set<String>)
This is called if some prune values have not been used when Wire pruned the schema model. Note that prune should contain package names (suffixed with .*), type names, and member names only. It should not contain file paths. Unused prunes can happen if the referenced type or service isn’t part of any .proto files defined in either sourcePath or protoPath, or if a broader prune value is already defined.
unusedRoots [jvm]
abstract fun unusedRoots(unusedRoots: Set<String>)
This is called if some root values have not been used when Wire pruned the schema model. Note that root should contain package names (suffixed with .*), type names, and member names only. It should not contain file paths. Unused roots can happen if the referenced type or service isn’t part of any .proto files defined in either sourcePath or protoPath, or if a broader root value is already defined.