added method name field in log printing