async redirectLog() {
        const logPath = utils.RepositoryRootDir + '/data/logs/pangea-android-logcat.log';
        console.log(`AndroidHelper: Redirecting log output from device ${this.deviceName} to ${logPath}.`);
        let logcat = await fork(
            'logcat',
            'adb', [
                '-s', 
                androidcfg.device_address,
                'logcat',
                '-v',
                'threadtime'
            ], {
                logStream: fs.createWriteStream(`${utils.RepositoryRootDir}/data/logs/pangea-android-logcat.log`)
            }
        );
    }
/* 
    Redirects log output
    Original story: https://www.pivotaltracker.com/story/show/162820053

    Currently, all logging data on Pangea-Mobile is accessible on the device
    itself via logcat. This data needs to be piped to a file on the development
    host, so that other applications such as a log parser can work with that
    file (making the log data more readily accessible to any developer working
    with the project).
    */


Currently, all logging data on Pangea-Mobile is accessible on the device
itself via logcat. This data needs to be piped to a file on the development
host, so that other applications such as a log parser can work with that
file (making the log data more readily accessible to any developer working
with the project).
Currently all logging data on Pangea - Mobile is accessible on the device itself via logcat . This data needs to be piped to a file on the development host so that other applications such as a log parser can work with that file ( making the log data more readily accessible to any developer working with the project ) .
async redirectLog() {
        const logPath = utils.RepositoryRootDir + '/data/logs/pangea-android-logcat.log';
        console.log(`AndroidHelper: Redirecting log output from device ${this.deviceName} to ${logPath}.`);
        let logcat = await fork(
            'logcat',
            'adb', [
                '-s', 
                androidcfg.device_address,
                'logcat',
                '-v',
                'threadtime'
            ], {
                logStream: fs.createWriteStream(`${utils.RepositoryRootDir}/data/logs/pangea-android-logcat.log`)
            }
        );
    }
async redirectLog ( ) { const logPath = utils . RepositoryRootDir + '/data/logs/pangea-android-logcat.log' ; console . log ( ` ${ this . deviceName } ${ logPath } ` ) ; let logcat = await fork ( 'logcat' , 'adb' , [ '-s' , androidcfg . device_address , 'logcat' , '-v' , 'threadtime' ] , { logStream : fs . createWriteStream ( ` ${ utils . RepositoryRootDir } ` ) } ) ; }
Redirects log output
Original story: https://www.pivotaltracker.com/story/show/162820053
Redirects log output Original story : https : // www . pivotaltracker . com / story / show / 162820053