Print only the file name and exclude file path getting printed in the log file

In reply to maximus:

This is because get_filename returns the path including the file itself. You could try to override this method.