When something goes wrong on a buyer's server you cannot get to, your log is the only evidence you will ever have. Most items ship with either nothing useful in it or so much that nobody can read it.
Log the things you would ask about
Failed external calls with the status returned. Failed writes with the path. Failed logins with the reason. Migration steps starting and finishing. Those are the five questions you ask in every support ticket, so answer them in advance.
Never log secrets
Not licence keys, not passwords, not API tokens, not full request bodies that might contain any of them. Log files get pasted into support tickets far more casually than config files do, and once a key is in one it has left the building.
Rotate, or you will fill their disk
A log with no size limit on a busy site becomes gigabytes. Cap the file size, keep a couple of old ones, delete the rest. A seller whose item filled a buyer's disk is remembered for that and nothing else.
Give it a level, and default it sensibly
Errors and warnings on by default. Debug off, switchable from config. That way you can ask a buyer to turn it up for one reproduction and back down afterwards, rather than shipping something noisy to everybody forever.
Put it somewhere they can reach and nobody else can
A path the buyer can find when you ask for it, outside the web root so it cannot simply be downloaded by anyone who guesses the filename.