logging through regular api