LogServiceクラス

クラスサービス(game:GetService("LogService")で取り出す)Instance.newでは作れない日本語解説は準備中

ひとことで言うと

LogServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):A service that allows you to read outputted text.

クラスの関係

受け継いでいるクラス:Object → Instance → LogService

メソッド(8)

名前と書き方説明
ClearOutput
LogService:ClearOutput(): ()
Clears Roblox Studio's **Output** window.
Error
LogService:Error(message: string, context: Dictionary): ()
Logs a message at the MessageType.MessageError level and throws a structured error with optional context.
GetLogHistory
LogService:GetLogHistory(): Array
Returns a table of tables, each with the message string, message type, and timestamp of a message that the client displays in the **Output** window.
GetLogger
LogService:GetLogger(name: string): Logger
Returns a top-level Logger with the given name, creating it if it does not already exist.
Info
LogService:Info(message: string, context: Dictionary): ()
Logs a message at the MessageType.MessageInfo level with optional structured context.
Log
LogService:Log(messageType: MessageType, message: string, context: Dictionary): ()
Logs a message at the specified level with optional structured context.
Output
LogService:Output(message: string, context: Dictionary): ()
Logs a message at the MessageType.MessageOutput level with optional structured context.
Warn
LogService:Warn(message: string, context: Dictionary): ()
Logs a message at the MessageType.MessageWarning level with optional structured context.

イベント(1)

名前と書き方説明
MessageOut
LogService.MessageOut(message: string, messageType: MessageType, context: Dictionary)
Fires when the client outputs text.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

LogServiceを使う記事

英語の説明とメンバーの一覧は、Roblox Creator Documentation(LogService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む