add logging API