You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

log_levels.md 1.5 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Log Levels
  2. This document describes the different log levels supported by the grpc-go
  3. library, and under what conditions they should be used.
  4. ### Info
  5. Info messages are for informational purposes and may aid in the debugging of
  6. applications or the gRPC library.
  7. Examples:
  8. - The name resolver received an update.
  9. - The balancer updated its picker.
  10. - Significant gRPC state is changing.
  11. At verbosity of 0 (the default), any single info message should not be output
  12. more than once every 5 minutes under normal operation.
  13. ### Warning
  14. Warning messages indicate problems that are non-fatal for the application, but
  15. could lead to unexpected behavior or subsequent errors.
  16. Examples:
  17. - Resolver could not resolve target name.
  18. - Error received while connecting to a server.
  19. - Lost or corrupt connection with remote endpoint.
  20. ### Error
  21. Error messages represent errors in the usage of gRPC that cannot be returned to
  22. the application as errors, or internal gRPC-Go errors that are recoverable.
  23. Internal errors are detected during gRPC tests and will result in test failures.
  24. Examples:
  25. - Invalid arguments passed to a function that cannot return an error.
  26. - An internal error that cannot be returned or would be inappropriate to return
  27. to the user.
  28. ### Fatal
  29. Fatal errors are severe internal errors that are unrecoverable. These lead
  30. directly to panics, and are avoided as much as possible.
  31. Example:
  32. - Internal invariant was violated.
  33. - User attempted an action that cannot return an error gracefully, but would
  34. lead to an invalid state if performed.