home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
1.13
  • Packages
    • ember
    • ember-application
    • ember-debug
    • ember-extension-support
    • ember-htmlbars
    • ember-metal
    • ember-routing
    • ember-routing-htmlbars
    • ember-routing-views
    • ember-runtime
    • ember-templates
    • ember-testing
    • ember-views
  • Namespaces
    • Ember
    • Ember.FEATURES
    • Ember.String
    • Ember.computed
    • Ember.inject
    • Ember.run
  • Classes
    • Ember.Application
    • Ember.Array
    • Ember.ArrayProxy
    • Ember.Binding
    • Ember.Checkbox
    • Ember.Component
    • Ember.ComputedProperty
    • Ember.ContainerDebugAdapter
    • Ember.Controller
    • Ember.ControllerMixin
    • Ember.CoreObject
    • Ember.DataAdapter
    • Ember.DefaultResolver
    • Ember.Error
    • Ember.Evented
    • Ember.Helper
    • Ember.InstrumentationSupport
    • Ember.Logger
    • Ember.Mixin
    • Ember.MutableArray
    • Ember.MutableEnumerable
    • Ember.Namespace
    • Ember.NativeArray
    • Ember.Object
    • Ember.Observable
    • Ember.PromiseProxyMixin
    • Ember.Route
    • Ember.Router
    • Ember.Service
    • Ember.Test
    • Ember.Test.Adapter
    • Ember.Test.QUnitAdapter
    • Ember.TextArea
    • Ember.TextField
    • Ember.VisibilitySupport
    • RSVP.EventTarget
    • RSVP.Promise

Class Ember.Logger public


Defined in: packages/ember-metal/lib/logger.js:50
Module: ember

Inside Ember-Metal, simply uses the methods from imports.console. Override this to provide more robust logging functionality.


Methods

assert (bool) public

Module: ember

Defined in packages/ember-metal/lib/logger.js:142

bool
Boolean

Value to test

If the value passed into Ember.Logger.assert is not truthy it will throw an error with a stack trace.

 Ember.Logger.assert(true); // undefined
 Ember.Logger.assert(true === false); // Throws an Assertion failed error.

debug (arguments) public

Module: ember

Defined in packages/ember-metal/lib/logger.js:125

arguments
*

Logs the arguments to the console in blue text. You can pass as many arguments as you want and they will be joined together with a space.

 var foo = 1;
 Ember.Logger.debug('log value of foo:', foo);
 // "log value of foo: 1" will be printed to the console

error (arguments) public

Module: ember

Defined in packages/ember-metal/lib/logger.js:92

arguments
*

Prints the arguments to the console with an error icon, red text and a stack trace. You can pass as many arguments as you want and they will be joined together with a space.

 Ember.Logger.error('Danger! Danger!');
 // "Danger! Danger!" will be printed to the console in red text.

info (arguments) public

Module: ember

Defined in packages/ember-metal/lib/logger.js:108

arguments
*

Logs the arguments to the console. You can pass as many arguments as you want and they will be joined together with a space.

 var foo = 1;
 Ember.Logger.info('log value of foo:', foo);
 // "log value of foo: 1" will be printed to the console

log (arguments) public

Module: ember

Defined in packages/ember-metal/lib/logger.js:59

arguments
*

Logs the arguments to the console. You can pass as many arguments as you want and they will be joined together with a space.

 var foo = 1;
 Ember.Logger.log('log value of foo:', foo);
 // "log value of foo: 1" will be printed to the console

warn (arguments) public

Module: ember

Defined in packages/ember-metal/lib/logger.js:76

arguments
*

Prints the arguments to the console with a warning icon. You can pass as many arguments as you want and they will be joined together with a space.

 Ember.Logger.warn('Something happened!');
 // "Something happened!" will be printed to the console with a warning icon.
On this page


Methods

  • assert
  • debug
  • error
  • info
  • log
  • warn
Team Sponsors Security Legal Branding Community Guidelines
Twitter GitHub Discord Mastodon

If you want help you can contact us by email, open an issue, or get realtime help by joining the Ember Discord.

© Copyright 2025 - Tilde Inc.
Ember.js is free, open source and always will be.


Ember is generously supported by
blue Created with Sketch.