overleaf/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogs.coffee

11 lines
285 B
CoffeeScript
Raw Normal View History

define [
"libs/latex-log-parser"
2016-06-16 10:29:00 -04:00
"ide/human-readable-logs/HumanReadableLogsRules"
], (LogParser, ruleset) ->
parse : (rawLog, options) ->
parsedLogEntries = LogParser.parse(rawLog, options)
2016-06-16 10:29:00 -04:00
console.log entry.message for entry in parsedLogEntries.all
return parsedLogEntries