エンジンクラス
LogService
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
概要
方法
ClearOutput():() |
Error(message: string,context: Dictionary):() |
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リファレンス
方法
ClearOutput
LogService:ClearOutput():()
戻り値
()
Error
パラメータ
| 既定値: "nil" |
戻り値
()
Info
パラメータ
| 既定値: "nil" |
戻り値
()
Log
パラメータ
| 既定値: "nil" |
戻り値
()
Output
パラメータ
| 既定値: "nil" |
戻り値
()
Warn
パラメータ
| 既定値: "nil" |
戻り値
()
イベント
MessageOut
LogService.MessageOut(
パラメータ
コードサンプル
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)