internal todo export class Logger { static namespace = '[@elastic/charts]' ; param message param optionalParams static warn ( message ? , ... optionalParams ) { if ( Logger . isDevelopment ( ) && ! Logger . isTest ( ) ) { console . warn ( `${ Logger . namespace } ${ message }` , ... optionalParams ) ; } } /**
     * Log expected value warning to console
     */ static expected ( message , expected , received ) { if ( Logger . isDevelopment ( ) && ! Logger . isTest ( ) ) { console . warn ( `${ Logger . namespace } ${ message }` , `\n
  Expected: ${ expected }
  Received: ${ received }
` ) ; } } param message param optionalParams static error ( message ? , ... optionalParams ) { if ( Logger . isDevelopment ( ) && ! Logger . isTest ( ) ) { console . warn ( `${ Logger . namespace } ${ message }` , ... optionalParams ) ; } } todo todo private static isDevelopment ( ) { return process . env . NODE_ENV !== 'production' ; } todo todo private static isTest ( ) { return process . env . NODE_ENV === 'test' ; } }