I am writing a wrapper for console.log() so that I have some control over when it runs.

I can get it to work when I use a getter but I want to use a normal function so that I can pass some args.

I want it to function the same as using a getter as it prints the correct class and line number in the console.

When I use a getter the correct message and class name and line number is output to the console:

```
get info() {
        return console.info.bind(console);
}

```

called by:

```
this.logger.info('this is a log');

```

results in console:

> 
> this is a log
> 
> 
> 

When I use a function nothing gets output to the console

```
public info() {
        return console.info.bind(console);
}

```

called by:

```
this.logger.info('this is a log');

```

results in blank console: