Coder Social home page Coder Social logo

gulp-remove-logging's Introduction

๐Ÿ‘‹ Hey! I am Valerian.

I am a Software Engineer and Product Designer. I spend my time building things.

What I am working on:

  • I am currently CTO at Crisp, a customer support SaaS, that I co-founded with Baptiste Jamin.
  • On the side, I am also working on Prose, a decentralized team messaging app, powered by XMPP.
  • I have a personal website, on which I sometimes blog, publish pictures and list books I have read.
  • I maintain popular OSS projects: Sonic (search index), Vigil (status page), Sales Tax (VAT calculator), and more.
  • Oh, and one last thing: I co-invented MakAir, the world's first open-source medical ventilator.

What I am interested in:

  • My domains of expertise are: messaging, protocols, cryptography, the XMPP standard, Rust programming, JavaScript full-stack development, application design, distributed systems, microservices and fault-tolerant architectures.
  • On my spare time, I also like to learn about: economics, 3D printing and CAD modeling.

๐Ÿ”’ All of my work gets signed with my ๐Ÿ”‘GPG key. Use it to verify the authenticity of anything I publish.

gulp-remove-logging's People

Contributors

valeriansaliou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gulp-remove-logging's Issues

it's work error when I lose semicolon at the end of console.log('####')

It not work correct ๐Ÿ˜ข

The blow is my code that want to delete the console.log()

$('#share-btn').click(function () {
                $('.mask').show();
		$('body,mask').css('touch-action', 'none')
		try {
			dataSDK.btnClick('share-btn', 'share to friend')
			console.log('click')
		} catch (e) {

		}
})

this is my glup task code

gulp.task('script', function () {
    return gulp.src('src/js/*.js')
        .pipe(plumber({
            errorHandler: notify.onError('js error: <%= error.message %>'),
        }))
        .pipe(
            removeConsolelog({
                // Options (optional) 
                // eg: 
                // namespace: ['console', 'window.console'] 
            })
        )
        .pipe(babel())
        .pipe(webpack({
            entry: './src/js/main.js',
            output: {
                filename: 'main.js',
            },
            module: {
                loaders: [{
                    test: /\.js$/,
                    loader: 'babel-loader',
                }],
            },
            plugins: [],
        }))     
        .pipe(uglify())
        .pipe(gulp.dest('dest/js'));
});

I miss a semicolon at the console.log,then run this gulp test, the result is it delete the part of the try catch.........
it delete the

catch(e){ 
}

which block after the console.log( )

How to remove logger instances?

Hello, I tried your plugin and I really like it.

I have log statements like this.logger.log('Saving Session...'); and they get all removed. The only thing that is not removed is this call:

this.logger = new Logdown({ prefix: 'MyLogger', alignOutput: true });

How can I remove such logger initializations?

My current configuration is this:

.pipe(
  gulp_remove_logging({
    namespace: ['this.logger', 'Logdown']
  })
)

Best from Berlin,
Benny

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.