Log Service
摘要
方法
ClearOutput():() |
Error(message: string,context: Dictionary):() |
GetLogHistoryAsync(user: User):{any} |
Info(message: string,context: Dictionary):() |
Log(messageType: Enum.MessageType,message: string,context: Dictionary):() |
Output(message: string,context: Dictionary):() |
Warn(message: string,context: Dictionary):() |
活动
MessageOut(message: string,messageType: Enum.MessageType,context: Dictionary):RBXScriptSignal |
API 参考
方法
Clear Output
Log Service: Clear Output():()
返回
()
Error
参数
| 默认值:nil |
返回
()
Info
Log
参数
| 默认值:nil |
返回
()
Output
参数
| 默认值:nil |
返回
()
Warn
活动
Message Out
Log Service. Message Out(
参数
代码示例
LogService.MessageOut
local LogService = game:GetService("LogService")
local messageLabel = Instance.new("Message")
messageLabel.Parent = workspace
local function onMessageOut(message, messageType)
messageLabel.Text = "消息为 " .. message .. ",类型为 " .. tostring(messageType)
end
LogService.MessageOut:Connect(onMessageOut)