onevcat / APNGKit

High performance and delightful way to play with APNG format in iOS.
MIT License
2.22k stars 201 forks source link

Adding log level #129

Closed onevcat closed 2 years ago

onevcat commented 2 years ago

For #128

When an image frame missing happens (usually due to a big image decoding and very short duration per frame), it trends to missing not only one frame but all the following frames. When this happens, the console log could be quite noisy. Most cases, the frame missing is acceptable.

This PR adds a LogLevel and LogLevel.current to control if a verbose print should happen.