LogBase

LogBase

new LogBase()

Properties:
Name Type Description
type string The log type

Methods

detail(content=opt)

Show all message content in the console, including formatted tables, objects, and arrays Message Color: blue
Parameters:
Name Type Attributes Description
content= string <optional>

error(message=opt, detailopt)

Show an error message in the console Message Color: red
Parameters:
Name Type Attributes Default Description
message= string <optional>
detail object | array | null <optional>
null

info(message=opt, detailopt)

Show an info message in the console Message Color: blue
Parameters:
Name Type Attributes Default Description
message= string <optional>
detail object | array | null <optional>
null

message(message=opt, coloropt, detailopt, typeopt)

Parameters:
Name Type Attributes Default Description
message= string <optional>
color string <optional>
white
detail object | array | null <optional>
null
type string <optional>
null

success(message=opt, detailopt)

Show a success message in the console Message Color: green
Parameters:
Name Type Attributes Default Description
message= string <optional>
detail object | array | null <optional>
null

text(message=opt, detailopt)

Show a text message in the console Message Color: white
Parameters:
Name Type Attributes Default Description
message= string <optional>
detail object | array | null <optional>
null

warning(message=opt, detailopt)

Show a warning message in the console Message Color: yellow
Parameters:
Name Type Attributes Default Description
message= string <optional>
detail object | array | null <optional>
null