SDL log

Can anybody share how to log in sdl? Any example, please. Wiki is poor about it.