I need to customize some methods, for example rollbar has method for log error:
public error(...args: Rollbar.LogArgument[]): Rollbar.LogResult;
function myErrorLogger(...args){
...
rollbar.error(args);
//or
rollbar.error.apply(null, args);
}
but seems does not work right. and pass args as an array.