# outputServerLog (Shared)

> Writes a message to this side's log, with the resource's name in front.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Output and debugging
- **URL**: https://wiki.mymp.gg/en/outputServerLog

## Syntax

```lua
bool outputServerLog(string text)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `text` | `string` | The text. |

## Returns

`true` once the line is written.

On a client, the line goes to the client's own log, not the server's.

## Example

```lua
addEventHandler("onPlayerJoin", root, function()
    outputServerLog(getPlayerName(source) .. " joined")
end)
```

## See also

- [outputDebugString (Shared)](https://wiki.mymp.gg/en/outputDebugString.md): Writes a line to this side's script log, as an error, a warning or a message.
- [print (Shared)](https://wiki.mymp.gg/en/print.md): Writes the values given to the script log as a message, separated by tabs.
