There kind of is a standard notion for logging on UNIX and it's /var/log/. stderr, although it suggests a stream for errors, is actually more correctly called a diagnostic stream. Depending on how you execute your program, you could implement writing to a file in /var/log/ inside your program or you could just write to stderr (diagnostic) and redirect it to a /var/log/ file.