log properly