Define mylog before using it