Skip to content
Roblox API Reference

LogService

A service that allows you to read outputted text.
  • Not creatable
  • Service
Memory category
Instances
Own members
26
Inherited members
75
Subclasses
0
Siblings
608

Properties23

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Methods56

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byLogService14
  • LogService:ClearOutput()
    Clears Roblox Studio's Output window.
    • Capabilities: Logging
  • LogService:Error(message: string, context: { [string]: any }? = nil)
    Logs a message at the MessageType.MessageError level and throws a structured error with optional context.
    • Custom Lua state
    • Capabilities: Logging
    Parameters
    ParameterDescription
    message: string
    The message string. Supports {key} template placeholders when a context table is provided.
    context: { [string]: any }? = nil
    An optional dictionary of key-value pairs. When provided, {key} placeholders in the message are replaced with the corresponding values.
  • LogService:ExecuteScript(source: string)
    • Roblox script security
    • Capabilities: Logging
    Parameters
    Parameter
    source: string
  • LogService:GetHttpResultHistory(): { any }
    • Roblox script security
    • Capabilities: Logging
    Returns
    Type
    { any }
  • LogService:GetLogger(name: string): Logger
    • Custom Lua state
    • Capabilities: Logging
    Parameters
    Parameter
    name: string
    Returns
    Type
    Logger
  • LogService:GetLogHistory(): { any }
    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.
    • Capabilities: Logging
    Returns
    TypeDescription
    { any }
    An array of tables, each containing message (string), messageType (MessageType), timestamp (number, in seconds), and optionally context (dictionary) for entries logged with structured context.
  • LogService:GetLogHistoryAsync(user: User): { any }
    • Yields
    • Capabilities: Logging
    Parameters
    Parameter
    user: User
    Returns
    Type
    { any }
  • LogService:Info(message: string, context: { [string]: any }? = nil)
    Logs a message at the MessageType.MessageInfo level with optional structured context.
    • Custom Lua state
    • Capabilities: Logging
    Parameters
    ParameterDescription
    message: string
    The message string. Supports {key} template placeholders when a context table is provided.
    context: { [string]: any }? = nil
    An optional dictionary of key-value pairs. When provided, {key} placeholders in the message are replaced with the corresponding values.
  • LogService:Log(messageType: Enum.MessageType,message: string,context: { [string]: any }? = nil,)
    Logs a message at the specified level with optional structured context.
    • Custom Lua state
    • Capabilities: Logging
    Parameters
    ParameterDescription
    messageType: Enum.MessageType
    The MessageType specifying the log level.
    message: string
    The message string. Supports {key} template placeholders when a context table is provided.
    context: { [string]: any }? = nil
    An optional dictionary of key-value pairs. When provided, {key} placeholders in the message are replaced with the corresponding values.
  • LogService:Output(message: string, context: { [string]: any }? = nil)
    Logs a message at the MessageType.MessageOutput level with optional structured context.
    • Custom Lua state
    • Capabilities: Logging
    Parameters
    ParameterDescription
    message: string
    The message string. Supports {key} template placeholders when a context table is provided.
    context: { [string]: any }? = nil
    An optional dictionary of key-value pairs. When provided, {key} placeholders in the message are replaced with the corresponding values.
  • LogService:RequestHttpResultApproved()
    • Roblox script security
    • Capabilities: Logging
  • LogService:RequestServerHttpResult()
    • Roblox script security
    • Capabilities: Logging
  • LogService:RequestServerOutput()
    • Roblox script security
    • Capabilities: Logging
  • LogService:Warn(message: string, context: { [string]: any }? = nil)
    Logs a message at the MessageType.MessageWarning level with optional structured context.
    • Custom Lua state
    • Capabilities: Logging
    Parameters
    ParameterDescription
    message: string
    The message string. Supports {key} template placeholders when a context table is provided.
    context: { [string]: any }? = nil
    An optional dictionary of key-value pairs. When provided, {key} placeholders in the message are replaced with the corresponding values.

Events22

Inherited fromObject1
Inherited fromInstance9
Defined byLogService12