Skip to content

Output module instead of using Roblox standard output message.

License

Notifications You must be signed in to change notification settings

a1inaashley/output-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Debug Library


This Lua library provides easy-to-use functionalities for logging and managing debug messages. It supports different log levels such as LOG, WARNING, and ERROR, and can be used to enhance debugging processes in Lua projects.


Features

Custom Debug Instances: Create separate debug instances with unique names. Multiple Log Levels: Support for different log levels including LOG, WARNING, and ERROR. Log Management: Store and retrieve log messages for each instance. Flexible Logging: Accepts variable number of arguments for logging.


Installation

To use this debug library in your Lua project, follow these simple steps:

  1. Clone the Repository: Clone this repository to your local machine or download the debug.lua file directly.
git clone https://github.com/atom-enginee/output-module.git
  1. Include the Library: Include the debug.lua file in your Lua script.
local debug = require("path/to/debug")

Usage

Below are examples of how to use the debug library:


Creating a Debug Instance

local debugger = debug.new("ExampleDebugger")

Logging Messages

-- Log a simple message
debugger:log("This is a log message.")

-- Log a warning message
debugger:warning("This is a warning message.")

-- Log an error message
debugger:error("This is an error message.")

Retrieving Logged Messages

local logs = debugger:getLogs()
for i, log in ipairs(logs) do
    print(log)
end

Debug with Prompt

debugger:debug("Enter your name", "John Doe")

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

About

Output module instead of using Roblox standard output message.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%