---
url: /technical/logging-within-a-process.md
description: outputText the line of text to output to the server log.
---

# Logging within a Process

#### Usage

```js
console.log(...values); 
```

#### Parameters

* `values` one or more values to output to the server log. Any number of arguments can be passed - strings, numbers, arrays and objects are all supported.

#### Example

```js
console.log('The processes has commenced');
```

::: tip
`script.log` also exists and works identically for a single string - `console.log` is documented here since it's the more familiar name in JavaScript, and it also accepts multiple arguments.
:::

## Logging multiple values

`console.log` isn't limited to a single string - any number of arguments can be passed in one call, and MODLR logs them together as a single entry:

```js
console.log("123", 456, ["i", "am", "an", "array"], { "property": "value" });
```

![Script Editor calling console.log with a string, a number, an array and an object, and the resulting log entry combining all four into a single line](/card-guides/console-log-example.png)
