logger to error