/*jshint esversion:6, node:true*/
'use strict';

module.exports =  function afterSolver(config){
    var prefix = config.logger.filenamePrefix,
        dirname = config.logger.dirname;

    config.logger.transports.map((tr)=> {

        if(prefix){
            tr._basename = tr.filename = prefix + '-'+ tr.filename;
        }

        if(dirname) {
            tr.dirname = config.logger.dirname;
        }
    });

    config.logger.exceptionHandlers.map((tr)=> {

        if(prefix){
            tr._basename = tr.filename = prefix + '-'+ tr.filename;
        }

        if(dirname) {
            tr.dirname = config.logger.dirname;
        }
    });
};

@@ -46,26 +46,310 @@
 ';%0A%0A
-module.exports =  
+/**%0A * Function to execute after all configuration%0A * references have been solved.%0A * %0A * @memberof core/Logger%0A * @param %7BObject%7D config Configuration object%0A * @param %7BObject%7D config.logger Logger options%0A * @param %7BObject%7D config.logger.filenamePrefix %0A * @param %7BObject%7D config.logger.dirname %0A */%0A
 func
@@ -376,17 +376,19 @@
 fig)
-%7B
+ %7B%0A
 %0A    
-var
+let
  pre
@@ -518,32 +518,33 @@
       if(prefix)
+ 
 %7B%0A            tr
@@ -765,16 +765,17 @@
 (prefix)
+ 
 %7B%0A      
@@ -935,11 +935,41 @@
     %7D);%0A
-
 %7D
+%0A%0Amodule.exports = afterSolver
 ;%0A

fix doc strings for logger afterSolver