mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 05:49:43 +02:00
Test mermaidAPI
This commit is contained in:
@@ -74,19 +74,19 @@ var fatal = function () {}
|
||||
*/
|
||||
exports.setLogLevel = function (level) {
|
||||
if (level < 6) {
|
||||
exports.Log.fatal = console.debug.bind(console, format('FATAL'), 'color:grey;', 'color: red;')
|
||||
exports.Log.fatal = console.log.bind(console, format('FATAL'), 'color:grey;', 'color: red;')
|
||||
}
|
||||
if (level < 5) {
|
||||
exports.Log.error = console.debug.bind(console, format('ERROR'), 'color:grey;', 'color: red;')
|
||||
exports.Log.error = console.log.bind(console, format('ERROR'), 'color:grey;', 'color: red;')
|
||||
}
|
||||
if (level < 4) {
|
||||
exports.Log.warn = console.debug.bind(console, format('WARN'), 'color:grey;', 'color: orange;')
|
||||
exports.Log.warn = console.log.bind(console, format('WARN'), 'color:grey;', 'color: orange;')
|
||||
}
|
||||
if (level < 3) {
|
||||
exports.Log.info = console.debug.bind(console, format('INFO'), 'color:grey;', 'color: info;')
|
||||
exports.Log.info = console.log.bind(console, format('INFO'), 'color:grey;', 'color: info;')
|
||||
}
|
||||
if (level < 2) {
|
||||
exports.Log.debug = console.debug.bind(console, format('DEBUG'), 'color:grey;', 'color: green;')
|
||||
exports.Log.debug = console.log.bind(console, format('DEBUG'), 'color:grey;', 'color: green;')
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user