add a default function in logger
support amd module