lib/logger/base-logger.js
function(error, verbose) {
    var message = "";
 
    //Some errors have a base error (in case of ElevatorError for example)
    while(error) {
        message += (verbose === true && error.stack) ? error.stack : error.message;
        error = error.baseError;
        
        if(error) {
            message += "\r\n";
        } 
    }
    
    return message;
}
function(error, verbose) {
    var message = "";
 
    //Some errors have a base error (in case of ElevatorError for example)
    while(error) {
        message += (verbose === true && error.stack) ? error.stack : error.message;
        error = error.baseError;
        
        if(error) {
            message += "\r\n";
        } 
    }
    
    return message;
}
function ( error , verbose ) { var message = "" ; //Some errors have a base error (in case of ElevatorError for example) while ( error ) { message += ( verbose === true && error . stack ) ? error . stack : error . message ; error = error . baseError ; if ( error ) { message += "\r\n" ; } } return message ; }
Create a log string for an error
@param error
@param verbose
Create a log string for an error