How to log sign-in, sign-out, and errors?

Hi, How can I log user logins, logouts, errors, and other actions in the Better Auth library? I’m using it in a Next.js.

Is there a built-in way to handle logging, or do I need to implement custom event tracking? Thank you
Was this page helpful?