Skip to content

Latest commit

 

History

History
206 lines (117 loc) · 4.21 KB

Logger_Logger.Logger.md

File metadata and controls

206 lines (117 loc) · 4.21 KB

@epicgames-ps/lib-pixelstreamingcommon-ue5.5 / Logger/Logger / Logger

Class: Logger

Logger/Logger.Logger

A basic console logger utilized by the Pixel Streaming frontend to allow logging to the browser console.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Logger(): Logger

Returns

Logger

Properties

verboseLogLevel

Static verboseLogLevel: number = 5

Defined in

Logger/Logger.ts:8

Methods

CommonLog

CommonLog(level, stack, message): void

The common log function that all other log functions call to.

Parameters

Name Type Description
level string the level of this log message.
stack null | string an optional stack trace string from where the log message was called.
message string the message to be logged.

Returns

void

Defined in

Logger/Logger.ts:87


Error

Error(stack, message): void

The standard logging output

Parameters

Name Type Description
stack string the stack trace
message string the message to be logged

Returns

void

Defined in

Logger/Logger.ts:68


GetStackTrace

GetStackTrace(): string

Captures the stack and returns it

Returns

string

the current stack

Defined in

Logger/Logger.ts:14


Info

Info(stack, message, verbosity?): void

The standard logging output

Parameters

Name Type Description
stack string the stack trace
message string the message to be logged
verbosity? number the verbosity level

Returns

void

Defined in

Logger/Logger.ts:55


Log

Log(stack, message, verbosity?): void

The standard logging output

Parameters

Name Type Description
stack string the stack trace
message string the message to be logged
verbosity? number the verbosity level

Returns

void

Defined in

Logger/Logger.ts:41


SetLoggerVerbosity

SetLoggerVerbosity(verboseLogLevel): void

Set the log verbosity level

Parameters

Name Type
verboseLogLevel number

Returns

void

Defined in

Logger/Logger.ts:29


Warning

Warning(stack, message): void

The standard logging output

Parameters

Name Type Description
stack string the stack trace
message string the message to be logged

Returns

void

Defined in

Logger/Logger.ts:77