GMImage.SetLogEventMask
-----------------------

Set log event mask.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [11.1](newinversion111.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.SetLogEventMask"; EventMask ) 

**MBS**( **"GMImage.SetLogEventMask"** /\* Set log event mask. \*/  
**$EventMask**) /\* The list of events to monitor, comma separated. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EventMask | The list of events to monitor, comma separated. |  |

### Result

Returns OK or error.

### Description

Set log event mask.  
Defines which events are logged.  
By default logging goes to stderr, so you may need to look into the log files on the FileMaker Server for server side usage and run FileMaker via Terminal on macOS to see logs there.  
  
List of events includes: none, Configure, Annotate, Render, Transform, Locale, Coder, X11, Cache, Blob, Deprecate, User, Resource, TemporaryFile, Exception, Option, Information, Warning, Error, FatalError and All.  
### Examples

Log all:

 Set Variable \[ $r ; Value: MBS ( "GMImage.SetLogEventMask"; "all" ) \]  
Log only coder and annotation events:

 Set Variable \[ $r ; Value: MBS ( "GMImage.SetLogEventMask"; "coder,annotate" ) \]  
Disable logging

 Set Variable \[ $r ; Value: MBS ( "GMImage.SetLogEventMask"; "none" ) \]  
### Release notes

- **Version 11.1**
    - Added [GMImage.SetLogEventMask](https://www.mbsplugins.eu/GMImageSetLogEventMask.shtml) and [GMImage.IsLoggingEnabled](https://www.mbsplugins.eu/GMImageIsLoggingEnabled.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 11.1](https://www.mbsplugins.de/archive/2021-03-16/MBS_FileMaker_Plugin_111/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.1pr7](https://www.mbsplugins.de/archive/2021-03-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 25th February 2021 , last changed 8th March 2021

  
[GMImage.SetLineWidth](GMImageSetLineWidth.md) - [GMImage.SetMagick](GMImageSetMagick.md)

[HTML Version](GMImageSetLogEventMask.shtml)