学ぶ
エンジンクラス
LogService
作成できません
サービス

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
方法
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):()
イベント
継承されたメンバー

APIリファレンス
方法
ClearOutput
機能: Logging
LogService:ClearOutput():()
戻り値
()

Error
機能: Logging
LogService:Error(
message:string, context:Dictionary
):()
パラメータ
message:string
context:Dictionary
既定値: "nil"
戻り値
()

GetLogHistory
機能: Logging
LogService:GetLogHistory():{any}
戻り値

Info
機能: Logging
LogService:Info(
message:string, context:Dictionary
):()
パラメータ
message:string
context:Dictionary
既定値: "nil"
戻り値
()

Log
機能: Logging
LogService:Log(
messageType:Enum.MessageType, message:string, context:Dictionary
):()
パラメータ
messageType:Enum.MessageType
message:string
context:Dictionary
既定値: "nil"
戻り値
()

Output
機能: Logging
LogService:Output(
message:string, context:Dictionary
):()
パラメータ
message:string
context:Dictionary
既定値: "nil"
戻り値
()

Warn
機能: Logging
LogService:Warn(
message:string, context:Dictionary
):()
パラメータ
message:string
context:Dictionary
既定値: "nil"
戻り値
()

イベント
MessageOut
機能: Logging
LogService.MessageOut(
message:string, messageType:Enum.MessageType, context:Dictionary
パラメータ
message:string
messageType:Enum.MessageType
context:Dictionary
コードサンプル
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)

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。