# LogService(ロブロックス クラス) > A service that allows you to read outputted text. - URL:https://roblox.minecraft-okinawa.com/reference/classes/LogService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/LogService - 受け継いでいるクラス:Instance ## メソッド - `LogService:ClearOutput(): ()`:Clears Roblox Studio's **Output** window. - `LogService:Error(message: string, context: Dictionary): ()`:Logs a message at the MessageType.MessageError level and throws a structured error with optional context. - `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. - `LogService:GetLogger(name: string): Logger`:Returns a top-level Logger with the given name, creating it if it does not already exist. - `LogService:Info(message: string, context: Dictionary): ()`:Logs a message at the MessageType.MessageInfo level with optional structured context. - `LogService:Log(messageType: MessageType, message: string, context: Dictionary): ()`:Logs a message at the specified level with optional structured context. - `LogService:Output(message: string, context: Dictionary): ()`:Logs a message at the MessageType.MessageOutput level with optional structured context. - `LogService:Warn(message: string, context: Dictionary): ()`:Logs a message at the MessageType.MessageWarning level with optional structured context. ## イベント - `LogService.MessageOut(message: string, messageType: MessageType, context: Dictionary)`:Fires when the client outputs text. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)