Add logging API