How do you enable exception logging?
See original GitHub issueCreated my server like below. Everything works fine, except that I don’t see stack traces when there are exceptions in gRPC handlers. I see other messages and was able to enable access log, however I don’t see stack traces. As much as I want those errors to never occur again, for now it is not an option. Thanks!
val grpc = GrpcServiceBuilder()
.supportedSerializationFormats(GrpcSerializationFormats.values())
.addService(RpcAuthService())
.addService(RpcUserTableService())
.addService(RpcTableService())
.build()
logger.info { "[$sub] grpc path mappings: ${grpc.pathMappings()}" }
server = ServerBuilder()
.port(core.grpcPort, SessionProtocol.HTTP)
.service(
grpc,
corsBuilder.newDecorator()
)
.accessLogWriter(AccessLogWriters.common())
.serviceLoggerPrefix("pfx")
.build()
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Enable exception logging - Windows drivers | Microsoft Learn
The Enable exception logging flag creates a log of exception records in the kernel run-time library. You can access the log from a...
Read more >Enabling the exception log - IBM
The exception log resource manager enables data relating to exceptions that occur at any time during processing on an integration server to ...
Read more >Logging Exceptions in Java - Loggly
In this post, we'll look at common approaches to Java exception handling and logging. The examples use Log4j2, but the concepts apply to ......
Read more >How to enable Exception logging in Visual Dialogue Portrait ...
The Visual Dialogue Exception logging is turned on in the "General" section of the Visual Dialogue "Options" window. kA1800000004Ma9CAE_en_US_1_2. Normally it ...
Read more >How to log a Python exception? - GeeksforGeeks
Logging an exception in python with an error can be done in the logging.exception() method. This function logs a message with level ERROR...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How about decorating your services with
LoggingService.newDecorator()
, just like you addedCorsService
?Thanks for getting back to us with an update. 😄