Nexrender: Job: default options and logger

Created on 1 Aug 2019  路  3Comments  路  Source: inlife/nexrender

In stead of having to init the rendered and add the setting for a logger, can we make it so that by default the logger is the console and the settings are optional for the render function?

e.g.

const { init, render } = require('@nexrender/core')

const settings = init({
    logger: console,
})

const main = async () => {
    const result = await render(/*myJobJson*/, settings)
}

Would go to

const { render } = require('@nexrender/core')

const main = async () => {
    const result = await render(/*myJobJson*/)
}
feature

Most helpful comment

@benbachem no, it wasn't. And yes, you could as well try, that would be very great.

All 3 comments

Actually yea, it is a good suggestion, I think we can.

Was this ever implemented?
Otherwise I could implement it in https://github.com/inlife/nexrender/issues/248.

@benbachem no, it wasn't. And yes, you could as well try, that would be very great.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Morreski picture Morreski  路  5Comments

joshea0 picture joshea0  路  5Comments

ujukauboi picture ujukauboi  路  4Comments

oskobri picture oskobri  路  3Comments

bgirschig picture bgirschig  路  6Comments