public interface CodegenLogger
An abstraction for logging code processing and generation events.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenLogger
create
(System.Logger logger) Create a new logger backed bySystem.Logger
.void
log
(CodegenEvent event) Log a new codegen event.default void
log
(System.Logger.Level level, String message) Log a new codegen (simple) event.
-
Method Details
-
create
Create a new logger backed bySystem.Logger
.- Parameters:
logger
- delegate to log all events to- Returns:
- a new
CodegenLogger
backed by the system logger
-
log
Log a new codegen event. SeeCodegenEvent
for log level mappings.- Parameters:
event
- to log
-
log
Log a new codegen (simple) event. SeeCodegenEvent
for log level mappings.- Parameters:
level
- log level to usemessage
- message to log
-