C# Class PlayFab.Public.PlayFabLoggerBase

This is some unity-log capturing logic, and threading tools that allow logging to be caught and processed on another thread
Inheritance: IPlayFabLogger
Show file Open project: PlayFab/PlayFab-Samples

Public Methods

Method Description
OnDestroy ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void

Protected Methods

Method Description
BeginUploadLog ( ) : void

Logs are cached and written in bursts BeginUploadLog is called at the begining of each burst

EndUploadLog ( ) : void

Logs are cached and written in bursts EndUploadLog is called at the end of each burst

PlayFabLoggerBase ( ) : System
UploadLog ( string message ) : void

Logs are cached and written in bursts UploadLog is called for each cached log, between BeginUploadLog and EndUploadLog

Private Methods

Method Description
ActivateThreadWorker ( ) : void
HandleUnityLog ( string message, string stacktrace, LogType type ) : void

Handler to process Unity logs into our logging system

RegisterLogger ( ) : IEnumerator
WriteLogThreadWorker ( ) : void

Method Details

BeginUploadLog() protected abstract method

Logs are cached and written in bursts BeginUploadLog is called at the begining of each burst
protected abstract BeginUploadLog ( ) : void
return void

EndUploadLog() protected abstract method

Logs are cached and written in bursts EndUploadLog is called at the end of each burst
protected abstract EndUploadLog ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PlayFabLoggerBase() protected method

protected PlayFabLoggerBase ( ) : System
return System

UploadLog() protected abstract method

Logs are cached and written in bursts UploadLog is called for each cached log, between BeginUploadLog and EndUploadLog
protected abstract UploadLog ( string message ) : void
message string
return void