Log
---

Writes the given values to the debug console.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Utility](component_Utility.md) | [2.2](newinversion22.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Log"; Params... ) 

**MBS**( **"Log";** /\* Writes the given values to the debug console. \*/  
**$Params...**) /\* Several parameters which are concated.e.g. "Test: ";$test \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Params... | Several parameters which are concated. | "Test: ";$test |

### Description

Writes the given values to the debug console.   
On Mac use Console.app in the Application Utilities folder. On Windows use DebugView application from Microsoft.  
  
On Windows with a FileMaker Server, you can see debug messages in DebugView if you run DebugView application as admin and enable global Win32 listening.  
For FileMaker Server on macOS you can see messages in /Library/FileMaker Server/Logs/stderr file.  
  
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.  
Please repeat Params parameter as often as you need.  
### Examples

Log a message:

 Set Variable \[ $r ; Value: MBS ( "Log"; "Test: "; $test ) \]  
Log last error:

 Set Variable \[ $r ; Value: MBS ( "Log"; "Lasterror: "; Get(LastError)) \]  
### See also

- [FM.MouseWheelScriptTrigger](FMMouseWheelScriptTrigger.md)

### Blog Entries

- [Use Perform Script on Server inside Data API script](https://www.mbsplugins.de/archive/2023-12-11/Use_Perform_Script_on_Server_i/monkeybreadsoftware_blog_filemaker)
- [MBS @ FMTraining.TV - Debugging your FileMaker Servers with the MonkeyBread Plug-in](https://www.mbsplugins.de/archive/2023-07-23/MBS_@_FMTrainingTV_-_Debugging/monkeybreadsoftware_blog_filemaker)
- [How to use Trace](https://www.mbsplugins.de/archive/2023-07-15/How_to_use_Trace/monkeybreadsoftware_blog_filemaker)
- [Additional iOS Script Triggers](https://www.mbsplugins.de/archive/2022-12-24/Additional_iOS_Script_Triggers/monkeybreadsoftware_blog_filemaker)
- [Install MBS Plugin on a FileMaker Server](https://www.mbsplugins.de/archive/2022-02-20/Install_MBS_Plugin_on_a_FileMa/monkeybreadsoftware_blog_filemaker)
- [Evaluate vs. Script Trigger](https://www.mbsplugins.de/archive/2016-03-04/Evaluate_vs_Script_Trigger/monkeybreadsoftware_blog_filemaker)
- [Logging in FileMaker](https://www.mbsplugins.de/archive/2015-06-05/Logging_in_FileMaker/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 7th November 2024

  
[Llama.TranscriptJSON](LlamaTranscriptJSON.md) - [MailComposer.AddAttachmentContainer](MailComposerAddAttachmentContainer.md)

[HTML Version](Log.shtml)