Send function in logger