Search
Preparing search index...
The search index is not available
grunt-dojo2-extras
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
LogStream
Class LogStream
Hierarchy
Writable
LogStream
Implements
WritableStream
Index
Constructors
constructor
Properties
buffer
level
writable
default
Max
Listeners
Methods
_write
add
Listener
emit
end
event
Names
get
Max
Listeners
listener
Count
listeners
on
once
pipe
prepend
Listener
prepend
Once
Listener
remove
All
Listeners
remove
Listener
set
Default
Encoding
set
Max
Listeners
write
write
Log
write
Log
Multiline
listener
Count
Constructors
constructor
new
Log
Stream
(
level
?:
string
, opts
?:
WritableOptions
)
:
LogStream
Parameters
Default value
level:
string
= "info"
Optional
opts:
WritableOptions
Returns
LogStream
Properties
Private
buffer
buffer
:
string
level
level
:
string
writable
writable
:
boolean
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
_write
_write
(
chunk
:
any
, encoding
:
string
, callback
:
Function
)
:
void
Parameters
chunk:
any
encoding:
string
callback:
Function
Returns
void
add
Listener
add
Listener
(
event
:
string
, listener
:
Function
)
:
this
add
Listener
(
event
:
"close"
, listener
:
function
)
:
this
add
Listener
(
event
:
"drain"
, listener
:
function
)
:
this
add
Listener
(
event
:
"error"
, listener
:
function
)
:
this
add
Listener
(
event
:
"finish"
, listener
:
function
)
:
this
add
Listener
(
event
:
"pipe"
, listener
:
function
)
:
this
add
Listener
(
event
:
"unpipe"
, listener
:
function
)
:
this
Event emitter The defined events on documents including:
close
drain
error
finish
pipe
unpipe
Parameters
event:
string
listener:
Function
Returns
this
Parameters
event:
"close"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"drain"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"error"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"finish"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"pipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
Parameters
event:
"unpipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
emit
(
event
:
"close"
)
:
boolean
emit
(
event
:
"drain"
, chunk
:
Buffer
|
string
)
:
boolean
emit
(
event
:
"error"
, err
:
Error
)
:
boolean
emit
(
event
:
"finish"
)
:
boolean
emit
(
event
:
"pipe"
, src
:
Readable
)
:
boolean
emit
(
event
:
"unpipe"
, src
:
Readable
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
Parameters
event:
"close"
Returns
boolean
Parameters
event:
"drain"
chunk:
Buffer
|
string
Returns
boolean
Parameters
event:
"error"
err:
Error
Returns
boolean
Parameters
event:
"finish"
Returns
boolean
Parameters
event:
"pipe"
src:
Readable
Returns
boolean
Parameters
event:
"unpipe"
src:
Readable
Returns
boolean
end
end
(
)
:
void
end
(
chunk
:
any
, cb
?:
Function
)
:
void
end
(
chunk
:
any
, encoding
?:
undefined
|
string
, cb
?:
Function
)
:
void
Returns
void
Parameters
chunk:
any
Optional
cb:
Function
Returns
void
Parameters
chunk:
any
Optional
encoding:
undefined
|
string
Optional
cb:
Function
Returns
void
event
Names
event
Names
(
)
:
(
string
|
symbol
)
[]
Returns
(
string
|
symbol
)
[]
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
on
on
(
event
:
string
, listener
:
Function
)
:
this
on
(
event
:
"close"
, listener
:
function
)
:
this
on
(
event
:
"drain"
, listener
:
function
)
:
this
on
(
event
:
"error"
, listener
:
function
)
:
this
on
(
event
:
"finish"
, listener
:
function
)
:
this
on
(
event
:
"pipe"
, listener
:
function
)
:
this
on
(
event
:
"unpipe"
, listener
:
function
)
:
this
Parameters
event:
string
listener:
Function
Returns
this
Parameters
event:
"close"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"drain"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"error"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"finish"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"pipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
Parameters
event:
"unpipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
once
once
(
event
:
string
, listener
:
Function
)
:
this
once
(
event
:
"close"
, listener
:
function
)
:
this
once
(
event
:
"drain"
, listener
:
function
)
:
this
once
(
event
:
"error"
, listener
:
function
)
:
this
once
(
event
:
"finish"
, listener
:
function
)
:
this
once
(
event
:
"pipe"
, listener
:
function
)
:
this
once
(
event
:
"unpipe"
, listener
:
function
)
:
this
Parameters
event:
string
listener:
Function
Returns
this
Parameters
event:
"close"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"drain"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"error"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"finish"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"pipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
Parameters
event:
"unpipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
pipe
pipe<T>
(
destination
:
T
, options
?:
undefined
|
object
)
:
T
Type parameters
T
:
WritableStream
Parameters
destination:
T
Optional
options:
undefined
|
object
Returns
T
prepend
Listener
prepend
Listener
(
event
:
string
, listener
:
Function
)
:
this
prepend
Listener
(
event
:
"close"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"drain"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"error"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"finish"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"pipe"
, listener
:
function
)
:
this
prepend
Listener
(
event
:
"unpipe"
, listener
:
function
)
:
this
Parameters
event:
string
listener:
Function
Returns
this
Parameters
event:
"close"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"drain"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"error"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"finish"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"pipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
Parameters
event:
"unpipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
, listener
:
Function
)
:
this
prepend
Once
Listener
(
event
:
"close"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"drain"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"error"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"finish"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"pipe"
, listener
:
function
)
:
this
prepend
Once
Listener
(
event
:
"unpipe"
, listener
:
function
)
:
this
Parameters
event:
string
listener:
Function
Returns
this
Parameters
event:
"close"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"drain"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"error"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"finish"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"pipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
Parameters
event:
"unpipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
, listener
:
Function
)
:
this
remove
Listener
(
event
:
"close"
, listener
:
function
)
:
this
remove
Listener
(
event
:
"drain"
, listener
:
function
)
:
this
remove
Listener
(
event
:
"error"
, listener
:
function
)
:
this
remove
Listener
(
event
:
"finish"
, listener
:
function
)
:
this
remove
Listener
(
event
:
"pipe"
, listener
:
function
)
:
this
remove
Listener
(
event
:
"unpipe"
, listener
:
function
)
:
this
Parameters
event:
string
listener:
Function
Returns
this
Parameters
event:
"close"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"drain"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"error"
listener:
function
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
this
Parameters
event:
"finish"
listener:
function
(
)
:
void
Returns
void
Returns
this
Parameters
event:
"pipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
Parameters
event:
"unpipe"
listener:
function
(
src
:
Readable
)
:
void
Parameters
src:
Readable
Returns
void
Returns
this
set
Default
Encoding
set
Default
Encoding
(
encoding
:
string
)
:
this
Parameters
encoding:
string
Returns
this
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
write
write
(
chunk
:
any
, cb
?:
Function
)
:
boolean
write
(
chunk
:
any
, encoding
?:
undefined
|
string
, cb
?:
Function
)
:
boolean
Parameters
chunk:
any
Optional
cb:
Function
Returns
boolean
Parameters
chunk:
any
Optional
encoding:
undefined
|
string
Optional
cb:
Function
Returns
boolean
Private
write
Log
write
Log
(
str
:
string
)
:
void
Parameters
str:
string
Returns
void
Private
write
Log
Multiline
write
Log
Multiline
(
chunk
:
string
)
:
void
Parameters
chunk:
string
Returns
void
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
Log
Stream
constructor
buffer
level
writable
default
Max
Listeners
_write
add
Listener
emit
end
event
Names
get
Max
Listeners
listener
Count
listeners
on
once
pipe
prepend
Listener
prepend
Once
Listener
remove
All
Listeners
remove
Listener
set
Default
Encoding
set
Max
Listeners
write
write
Log
write
Log
Multiline
listener
Count
Generated using
TypeDoc
Event emitter The defined events on documents including: