Skip to content

ConsoleLogs

Success

This documentation page includes all the elements from the module ConsoleLogs.

EffLogMessage

Requires DiSky v4.0.0

Logs a message with the given log level.

print "hi" with severity of trace to console
send "hello I am a log message" with severity of info to console
log "this is a custom log message" with severity of debug to console
(print|send|log) %strings% with [the|a] severity [of] fatal to [the] console
(print|send|log) %strings% with [the|a] severity [of] error to [the] console
(print|send|log) %strings% with [the|a] severity [of] warn[ing] to [the] console
(print|send|log) %strings% with [the|a] severity [of] info[rmation] to [the] console
(print|send|log) %strings% with [the|a] severity [of] debug to [the] console
(print|send|log) %strings% with [the|a] severity [of] trace to [the] console

Log Event

Requires DiSky v4.0.0

By using the log event, you can use this (alongside the required expression) to send console log messages to discord!

on log:
    post logged message to channel with id "000"
[on] [console] log

Logged Message

Requires DiSky v4.0.0

This expressions returns the logged message (in chunks, to prevent rate limiting). This cannot be set or deleted.

set {_message} to the logged message
[the] log[ged] message

Last Logged Message

Requires DiSky v4.0.0

This returns the latest logged message that was sent in console. May not always be accurate This cannot be used inside the on log event.

set {_message} to the last logged message
[the] last log[ged] message

Log Level

Requires DiSky v4.0.0

This returns the log level of a logged message in an on log event.

if the log level is error:
[the] log [message] level

Log Level Types

Requires DiSky v4.0.0

This is the types of log levels that are valid.

No examples provided.
info, warning, error, fatal, trace, debug, all