Logger source

Specializes Montage

Properties

buffered :Property source

Default Value:
  • {boolean} false

flush source

Log all the contents the logger's buffer.

isDebug :boolean source

isError :boolean source

name :string source

Default Value:
  • {string} null

Methods

callDelegateMethod(name) source

This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"

Parameters:
Name Type Description
name string
Inherited From:

debug(object) source

Parameters:
Name Type Argument Description
object Function | String

If the first argument is a function the logger with print its name

... string <optional>

equals(anObject) → {boolean} source

Returns true if two objects are equal, otherwise returns false.

Parameters:
Name Type Description
anObject Object

The object to compare for equality.

Inherited From:
Returns: boolean

Returns true if the calling object and anObject are identical and their uuid properties are also equal. Otherwise, returns false.

error(object) source

Parameters:
Name Type Argument Description
object Function | String

If the first argument is a function the logger with print its name

... string <optional>

init(name, dontStoreState) source

Parameters:
Name Type Argument Default Description
name string

The name of the logger.

dontStoreState State <optional>
false

If true, don't store the isDebug state of the logger in localStorage .

Returns:

itself

toTimeString() source

Prints the current time in format HH:MM:SS.000

Generated from a4679af

comments powered by Disqus

More help?

Can't find what you are looking for? Get in touch, we're more than happy in helping answer your questions.