6.0.2 • Published 1 year ago
@ima/plugin-logger v6.0.2
@ima/plugin-logger
A logging tool for IMA.js framework.
Installation
npm install @ima/plugin-logger --save
// /app/build.js
var vendors = {
common: [
'@ima/plugin-logger'
]
};
/*
import {
...
} from '@ima/plugin-logger';
*/
Functions
configureLogger(option)
: It configures the plugin. The parameteroptions
must be anobject
with some plugin's options as properties.beSilent()
: It setssilentMode
option totrue
.isSilent()
: ReturnssilentMode
option's value.debug(message)
: Outputs a debug message.error(message)
: Outputs an error message.info(message)
: Outputs an informational message.log(message)
: Outputs a message.warn(message)
: Outputs a warning message.debugIf(message)
: Outputs a debug message if a condition is met.errorIf(message)
: Outputs an error message if a condition is met.infoIf(message)
: Outputs an informational message if a condition is met.logIf(message)
: Outputs a message if a condition is met.warnIf(message)
: Outputs a warning message if a condition is met.throwIf(condition, expression)
: Throws a user-defined exception if a condition is met.rejectIf(condition, reason)
: Returns a rejected promise if a condition is met.
Options
silentMode
boolean
, defaults to false
If it's set to false
, the plugin outputs messages. If it's set to true
,
the plugin doesn't output anything.
6.0.1
1 year ago
6.0.2
1 year ago
6.0.0
2 years ago
5.0.2-rc.1
2 years ago
5.0.2-rc.2
2 years ago
5.0.2-rc.3
2 years ago
5.0.2-rc.0
2 years ago
5.0.0-rc.9
3 years ago
5.0.1
2 years ago
5.0.0
3 years ago
5.0.0-rc.10
3 years ago
5.0.0-rc.11
3 years ago
5.0.0-rc.12
3 years ago
5.0.0-rc.3
3 years ago
5.0.0-rc.4
3 years ago
5.0.0-rc.5
3 years ago
5.0.0-rc.6
3 years ago
5.0.0-rc.7
3 years ago
5.0.0-rc.8
3 years ago
5.0.0-rc.2
3 years ago
5.0.0-rc.0
3 years ago
5.0.0-rc.1
3 years ago
3.0.3
3 years ago
3.0.2
3 years ago
4.0.0
3 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.0.0
6 years ago
1.0.0
6 years ago