---
lang: en
title: 'API docs: rest.logerror'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.logerror.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [LogError](./rest.logerror.md)

## LogError type

Log information about a failed request.

<b>Signature:</b>

```typescript
export declare type LogError = (err: Error, statusCode: number, request: Request) => void;
```

