mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
perf: 抽取api
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { Certd } from '@certd/certd'
|
||||
import DefaultPlugins from '@certd/plugins'
|
||||
import logger from './util.log.js'
|
||||
import _ from 'lodash'
|
||||
import { util } from '@certd/api'
|
||||
import _ from 'lodash-es'
|
||||
import dayjs from 'dayjs'
|
||||
import { Trace } from './trace.js'
|
||||
const logger = util.logger
|
||||
export class Executor {
|
||||
constructor (args = {}) {
|
||||
const { plugins } = args
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import logger from './util.log.js'
|
||||
import _ from 'lodash'
|
||||
import { util } from '@certd/api'
|
||||
import _ from 'lodash-es'
|
||||
const logger = util.logger
|
||||
export class Trace {
|
||||
constructor (context) {
|
||||
this.context = context
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import log4js from 'log4js'
|
||||
log4js.configure({
|
||||
appenders: { std: { type: 'stdout' } },
|
||||
categories: { default: { appenders: ['std'], level: 'info' } }
|
||||
})
|
||||
const logger = log4js.getLogger('certd')
|
||||
export default logger
|
||||
|
||||
// import debug from 'debug'
|
||||
// debug.enable('info,debug,error,warn')
|
||||
// export default {
|
||||
// debug: debug('debug'),
|
||||
// info: debug('info'),
|
||||
// error: debug('error'),
|
||||
// warn: debug('warn')
|
||||
// }
|
||||
Reference in New Issue
Block a user