---
url: /flow/guide/scripting-reference/functions/logging/logwarning.md
---

# LogWarning

## Declaration

`procedure LogWarning(aMesg : string);`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  if MyData.EOF then
LogWarning('You are at the end of records in MyData recordset');
end;
```

## Description

Creates an entry in the action Log of type `User Warning`.
