add exemple on how to use log in createApp callback