Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Defines some logging functions used in OC-OS --
- function warn(message)
- write(' [ ')
- term.setTextColor(colors.orange)
- write('WARN')
- term.setTextColor(colors.white)
- write(' ] '..message..'\n')
- end
- function err(message)
- write(' [ ')
- term.setTextColor(colors.red)
- write('ERROR')
- term.setTextColor(colors.white)
- write(' ] '..message..'\n')
- end
- function info(message)
- write(' [ ')
- term.setTextColor(colors.green)
- write('OK')
- term.setTextColor(colors.white)
- write(' ] '..message..'\n')
- end
Add Comment
Please, Sign In to add comment