Home Reference Source
import {SharedLogger} from 'cables-shared-api'
public class | source

SharedLogger

Extends:

cables_dev/shared/api/shared_util.js~SharedUtil → SharedLogger

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
Private Members
private get
private

_services: *[]

Method Summary

Public Methods
public

debug(args: ...*)

public

endTime(args: ...*)

public

error(args: ...*)

public

info(args: ...*)

public

startTime(args: ...*)

public

uncaught(args: ...*)

public

verbose(args: ...*)

public

warn(args: ...*)

Private Methods
private
private

_getContext(loggerArguments: *): {"line": *, "index": *, "clean": *, "stack": *}

private

_log(args: ...*)

private

_logConsole(initiator: *, level: *, context: *, args: *, dateFormat: string)

Public Constructors

public constructor() source

Public Members

public get utilName: * source

Private Members

private get _initiator: * source

private _services: *[] source

Public Methods

public debug(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

public endTime(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

public error(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

public info(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

public startTime(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

public uncaught(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

public verbose(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

public warn(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

Private Methods

private _getCallerFile(): * source

Return:

*

private _getContext(loggerArguments: *): {"line": *, "index": *, "clean": *, "stack": *} source

Params:

NameTypeAttributeDescription
loggerArguments *

Return:

{"line": *, "index": *, "clean": *, "stack": *}

private _log(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

private _logConsole(initiator: *, level: *, context: *, args: *, dateFormat: string) source

Params:

NameTypeAttributeDescription
initiator *
level *
context *
args *
dateFormat string
  • optional
  • default: DD-MM-YYYY HH:mm:ss