---
schema_version: "1"
id: c3257f7d7c8038fb9932743d46de4fd1aa4cf3d65f47e34e39ef702f9fb19747
title: log()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-dollara-log.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-dollara-log.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 10bb40dd623c9753ad9e6300679ecbd7e32bfab37b2e8155707272a020c1134c
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# log()

Deprecated. Logs to the browser's JavaScript console, if it is available. This method doesn't log in production or debug modes so it’s only useful for internal usage by the framework.

## Signature

`log (Object value, Object error)`

## Parameters

**_value_:** Type: `Object`. The object to log.

**_error_:** Type: `Object`. The error message to log in the stack trace.

## Returns

**Type: `String`** The requested value.

