String[] content = FileUtils.fileRead( logFile ).split( "\n" );
if ( content.length > lines )
{
content = Arrays.copyOfRange( content, content.length - lines, content.length - 1 );
}
return "Full log at: " + logFile + "\n" + Lambda.aggregate( content, new Concat( "\n" ) ).toString();
}
catch ( IOException e )
{
// ignore
return "(Error reading log contents: " + e.getMessage() + "): " + logFile;