All files / common/rage_modules logger.mjs

100% Statements 28/28
100% Branches 3/3
100% Functions 2/2
100% Lines 28/28

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 301x 1x 1x 1x 2x 2x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x    
 
 
class Logger {
    constructor(){
        // CODE: INCOMPLETE
        // UNIT: FALSE
        // DOCS: FALSE
        
    }
 
    log(a){
        // CODE: INCOMPLETE
        // UNIT: FALSE
        // DOCS: FALSE
        let outputDiv = document.getElementById('text-output')
        let div = document.createElement('div')
        div.innerText = a
        console.log(a)
 
        outputDiv.prepend(div)
    }
}
 
const LOGGER = new Logger()
const log =  LOGGER.log
export {log as log}
export {Logger as Logger}
export default log