Skip to content

Mirror::SimpleWeb::Log

Public Types

Name
enum Levels { none = 0, error = 1, warn = 2, info = 3, verbose = 4 }

Public Functions

Name
string BufferToString(byte [] buffer, int offset =0, int? length =null)
void DumpBuffer(string label, byte [] buffer, int offset, int length)
void DumpBuffer(string label, ArrayBuffer arrayBuffer)
void Verbose(string msg, bool showColor =true)
void Info(string msg, bool showColor =true)
void InfoException(Exception e)
An expected Exception was caught, useful for debugging but not important
void Warn(string msg, bool showColor =true)
void Error(string msg, bool showColor =true)
void Exception(Exception e)

Public Attributes

Name
ILogger logger
Levels level

Public Types Documentation

enum Levels

Enumerator Value Description
none 0
error 1
warn 2
info 3
verbose 4

Public Functions Documentation

function BufferToString

static inline string BufferToString(
    byte [] buffer,
    int offset =0,
    int? length =null
)

function DumpBuffer

static inline void DumpBuffer(
    string label,
    byte [] buffer,
    int offset,
    int length
)

function DumpBuffer

static inline void DumpBuffer(
    string label,
    ArrayBuffer arrayBuffer
)

function Verbose

static inline void Verbose(
    string msg,
    bool showColor =true
)

function Info

static inline void Info(
    string msg,
    bool showColor =true
)

function InfoException

static inline void InfoException(
    Exception e
)

An expected Exception was caught, useful for debugging but not important

Parameters:

  • msg
  • showColor

function Warn

static inline void Warn(
    string msg,
    bool showColor =true
)

function Error

static inline void Error(
    string msg,
    bool showColor =true
)

function Exception

static inline void Exception(
    Exception e
)

Public Attributes Documentation

variable logger

static ILogger logger = Debug.unityLogger;

variable level

static Levels level = Levels.none;

Updated on 21 January 2021 at 12:03:38 UTC