Audit.SetLogAccess
------------------

Sets whether access is logged.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Audit](component_Audit.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Audit.SetLogAccess"; Value ) 

**MBS**( **"Audit.SetLogAccess";** /\* Sets whether access is logged. \*/  
**$Value**) /\* The new setting. Can be 0 or 1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting. Can be 0 or 1. | 0 |

### Result

Returns OK or error.

### Description

Sets whether access is logged.  
If a record is modified which the plugin does not log as fields are disabled for logging, the plugin will write an entry with access action. If you set this to zero, the access log entry is not written.  
See also [Audit.GetLogAccess](AuditGetLogAccess.md).  
  
You may best call this in start script of the solution to setup Audit as needed.  
### Examples

Disable access logging:

 MBS ( "Audit.SetLogAccess"; 0 )  
### See also

- [Audit.GetLogAccess](AuditGetLogAccess.md)

### Blog Entries

- [Configure Audit functions in MBS Plugin](https://www.mbsplugins.de/archive/2022-06-10/Configure_Audit_functions_in_M/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.1pr3](https://www.mbsplugins.de/archive/2014-03-04/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 3th June 2021

  
[Audit.SetIgnoredFieldNames](AuditSetIgnoredFieldNames.md) - [Audit.SetUUIDField](AuditSetUUIDField.md)

[HTML Version](AuditSetLogAccess.shtml)