Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function log(tag, message)
- timestamp = "[" .. textutils.formatTime(os.time(), true) .. "]"
- tagString = "[" .. tag .. "]"
- print(timestamp ..
- tagString ..
- " " .. message)
- end
- function i(message)
- term.setTextColor(colors.white)
- log("Info", message)
- end
- function w(message)
- term.setTextColor(colors.orange)
- log("Warning", message)
- end
- function e(message)
- term.setTextColor(colors.red)
- log("Error", message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement