You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we've introduced a logger to the Fuel stack, we should consider where it would add the most value and what what log levels we would like to have for various types of flows.
In general one would use an info level to trace through a process e.g.
We would want to log warn level logs when a consumer has set a particular configuration or chosen a particular action that could result in an error. e.g.
deploying and interacting with a contract without awaiting execution
doing a batch transaction which could have multiple transactions fail
We would want to log error level logs when a consumer for when a consumer encounters an error that may not be thrown as an error. An example of that is
These scenarios are by no means exhaustive but the intention of this discussion is derive a set of scenarios which we believe would benefit from logging so that we can create an issue(s) to address them.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Now that we've introduced a logger to the Fuel stack, we should consider where it would add the most value and what what log levels we would like to have for various types of flows.
In general one would use an
info
level to trace through a process e.g.callResult
to a scriptWe would want to log
warn
level logs when a consumer has set a particular configuration or chosen a particular action that could result in an error. e.g.We would want to log
error
level logs when a consumer for when a consumer encounters an error that may not be thrown as an error. An example of that isThese scenarios are by no means exhaustive but the intention of this discussion is derive a set of scenarios which we believe would benefit from logging so that we can create an issue(s) to address them.
Beta Was this translation helpful? Give feedback.
All reactions