home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
2.18
  • Packages
    • @ember/application
    • @ember/array
    • @ember/component
    • @ember/controller
    • @ember/debug
    • @ember/engine
    • @ember/error
    • @ember/object
    • @ember/polyfills
    • @ember/routing
    • @ember/runloop
    • @ember/service
    • @ember/string
    • @ember/test
    • @ember/utils
    • ember-glimmer
    • jquery
  • Classes
    • Adapter
    • Application
    • ApplicationInstance
    • ApplicationInstance.BootOptions
    • ArrayProxy
    • Checkbox
    • Component
    • ComputedProperty
    • ContainerDebugAdapter
    • ContainerProxyMixin
    • Controller
    • CoreObject
    • DataAdapter
    • Ember.Debug
    • Ember.Logger
    • Ember.MutableEnumerable
    • Ember.Namespace
    • Ember.NativeArray
    • Ember.Templates.helpers
    • Ember.Test
    • Ember.Test.QUnitAdapter
    • EmberArray
    • EmberError
    • EmberObject
    • Engine
    • EngineInstance
    • Evented
    • GlobalsResolver
    • HashLocation
    • Helper
    • HistoryLocation
    • LinkComponent
    • Mixin
    • MutableArray
    • NoneLocation
    • ObjectProxy
    • Observable
    • PromiseProxyMixin
    • RSVP.EventTarget
    • RSVP.Promise
    • Route
    • Router
    • RouterService
    • Service
    • String
    • TextArea
    • TextField

Class Ember.Logger public


Defined in: packages/ember-console/lib/index.js:35
Module: @ember/application

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


Methods

assert (bool, message) public

Module: @ember/application

Defined in packages/ember-console/lib/index.js:127

bool
Boolean

Value to test

message
String

Assertion message on failed

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.
 Ember.Logger.assert(true === false, 'Something invalid'); // Throws an Assertion failed error with message.

debug (arguments) public

Module: @ember/application

Defined in packages/ember-console/lib/index.js:110

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/application

Defined in packages/ember-console/lib/index.js:77

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/application

Defined in packages/ember-console/lib/index.js:93

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/application

Defined in packages/ember-console/lib/index.js:44

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/application

Defined in packages/ember-console/lib/index.js:61

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.