In this release, we've made significant improvements to our logging.
Key updates include:
Time Logging: We've added detailed time logging, which records the elapsed time for each function call. This will help us identify any performance bottlenecks and optimize our code accordingly.
Memory Usage Logging: Alongside time logging, we've also introduced memory usage logging. This records the amount of memory used by each function call, helping us to identify any memory-intensive operations and optimize them.
Conditional Logging: To avoid cluttering the logs, we've added conditions for both time and memory logging. Logs will only be recorded if the elapsed time or memory usage exceeds a specified limit.
Exception Handling: In the event of an exception, the elapsed time and memory usage up until the point of the exception will be logged. This will help us to understand the state of the system at the time of the error.
These enhancements will provide us with more detailed insights into our application's performance, helping us to continually improve and optimize our code.