---
title: ConsoleLoggingOptions
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/logger/interface.ConsoleLoggingOptions/
---

**Kind:** Interface  
**Module:** [logger](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/logger/)  
**Package:** @fastly/js-compute 4.0.1  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/logger.d.ts#L42

## Properties

### prefixing

**Type:** `boolean`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/logger.d.ts#L49

Whether to output string prefixes "Log: " | "Debug: " | "Info: " | "Warn: " | "Error: "
before messages.

Defaults to false.

### stderr

**Type:** `boolean`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/logger.d.ts#L55

Whether to use stderr for `console.warn` and `console.error` messages.

Defaults to false.
