mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
fixed stub logger... need to unify loggers (feature?)
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
161f2f3ca5
commit
bf6ff1c549
@ -123,8 +123,22 @@ module.CLI = core.ImageGridFeatures.Feature({
|
||||
//.usage('[command] [options] ..')
|
||||
|
||||
.option('-v, --verbose', 'verbose mode', function(){
|
||||
// XXX use a standard logger...
|
||||
that.logger = {
|
||||
emit: function(){ console.log.apply(console, arguments) }
|
||||
root: true,
|
||||
push: function(){
|
||||
var o = Object.create(this)
|
||||
o.root = false
|
||||
o.__prefix = (this.__prefix || []).concat([].slice.call(arguments))
|
||||
return o
|
||||
},
|
||||
pop: function(){
|
||||
return this.root ? this : this.__proto__
|
||||
},
|
||||
emit: function(){
|
||||
console.log.apply(console,
|
||||
(this.__prefix || []).concat([].slice.call(arguments)))
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user