code: function init (state, namespace) {
    namespace = namespace || 'deftly'
    const logger = { namespace: namespace }
    attach(state, logger, namespace)
    return logger
  }
docs: create a namespaced log instance for use in modules