-
Notifications
You must be signed in to change notification settings - Fork 59
logger
ralphhanna edited this page Dec 18, 2023
·
3 revisions
bpmn-server / Logger
A logging tool to take various message for monitoring and debugging
it can also keep the message in memory till saved later through saveToFile msgs can be cleared by the clean method
• new Logger(«destructured»): Logger
| Name | Type |
|---|---|
«destructured» |
Object |
› callback
|
any |
› toConsole
|
boolean |
› toFile
|
string |
• callback: any = null
• debugMsgs: any[] = []
• toConsole: boolean = true
• toFile: any = null
▸ clear(): void
void
▸ debug(...message): void
| Name | Type |
|---|---|
...message |
any[] |
void
▸ error(err): void
| Name | Type |
|---|---|
err |
any |
void
▸ get(): any[]
any[]
▸ log(...message): Object
| Name | Type |
|---|---|
...message |
any[] |
Object
| Name | Type |
|---|---|
date |
Date |
message |
any |
▸ msg(message, type?): Object
| Name | Type | Default value |
|---|---|---|
message |
any |
undefined |
type |
string |
'log' |
Object
| Name | Type |
|---|---|
date |
Date |
message |
any |
▸ reportError(err): void
| Name | Type |
|---|---|
err |
any |
void
▸ save(filename): Promise<void>
| Name | Type |
|---|---|
filename |
any |
Promise<void>
▸ setOptions(«destructured»): void
| Name | Type |
|---|---|
«destructured» |
Object |
› callback
|
any |
› toConsole
|
any |
› toFile
|
any |
void
▸ toString(...args): string
| Name | Type |
|---|---|
...args |
any[] |
string
▸ warn(...message): void
| Name | Type |
|---|---|
...message |
any[] |
void