@azerion/bluestack-sdk-react-native
Version:
BlueStack provides functionalities for monetizing your mobile application: from premium sales with rich media, video and innovative formats, it facilitates inserting native mobile ads as well all standard display formats. BlueStack SDK is a library that a
28 lines (22 loc) • 575 B
text/typescript
const prefix: string[] = [
' %c %c %c Bluestack SDK %c %c %c ',
'background: #278CEB',
'background:#006db6',
'color: #fff; ' + 'background: #001c4a;',
'background: #006db6',
'background: #278CEB',
'',
];
class Logger {
private debug: boolean = false;
public log(...data: any[]): void {
if (!this.debug) {
return;
}
console.log.apply(console, prefix.concat(...data));
}
public setDebug(dbg: boolean = false): boolean {
return (this.debug = dbg);
}
}
export default new Logger();