log output implemented