How to use the @vendure/core.DefaultLogger function in @vendure/core

To help you get started, we’ve selected a few @vendure/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vendure-ecommerce / vendure / packages / dev-server / dev-config.ts View on Github external
dbConnectionOptions: {
        synchronize: false,
        logging: false,
        migrations: [path.join(__dirname, 'migrations/*.ts')],
        ...getDbConfig(),
    },
    paymentOptions: {
        paymentMethodHandlers: [examplePaymentHandler],
    },
    customFields: {
        /*Product: [
            { name: 'rating', type: 'float', readonly: true },
            { name: 'markup', type: 'float', internal: true },
        ],*/
    },
    logger: new DefaultLogger({ level: LogLevel.Info }),
    importExportOptions: {
        importAssetsDir: path.join(__dirname, 'import-assets'),
    },
    plugins: [
        AssetServerPlugin.init({
            route: 'assets',
            assetUploadDir: path.join(__dirname, 'assets'),
            port: 5002,
        }),
        DefaultSearchPlugin,
        // ElasticsearchPlugin.init({
        //     host: 'http://192.168.99.100',
        //     port: 9200,
        // }),
        EmailPlugin.init({
            devMode: true,
github vendure-ecommerce / vendure / packages / dev-server / load-testing / load-test-config.ts View on Github external
export function getLoadTestConfig(tokenMethod: 'cookie' | 'bearer'): Required {
    const count = getProductCount();
    return mergeConfig(defaultConfig, {
        paymentOptions: {
            paymentMethodHandlers: [examplePaymentHandler],
        },
        orderOptions: {
            orderItemsLimit: 99999,
        },
        logger: new DefaultLogger({ level: LogLevel.Info }),
        dbConnectionOptions: getMysqlConnectionOptions(count),
        authOptions: {
            tokenMethod,
            requireVerification: false,
        },
        importExportOptions: {
            importAssetsDir: path.join(__dirname, './data-sources'),
        },
        workerOptions: {
            runInMainProcess: true,
        },
        customFields: {},
        plugins: [
            AssetServerPlugin.init({
                assetUploadDir: path.join(__dirname, 'static/assets'),
                route: 'assets',