log
Logs the tasks
queue.log( [type] )
Logs tasks as they are being enqueued and flushed.
The following:
queue.log();
queue.enqueue( console.log, console, [ "say hi" ], {} );
queue.flush();
Logs:
enqueuing: log ▶ { ... }
running : log ▶ { ... }
say hi
Parameters
- type
{String|Boolean}:Specifies what to log.
.log()- Logs when tasks are enqueued and run..log(false)- Turn off logging..log("flush")- Log only flushing..log("enqueue")- Log on enqueuing.