mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	 154fc28a57
			
		
	
	
		154fc28a57
		
	
	
	
	
		
			
			As a result of taking a look on PR #1967 I realized there is 819 executable files in this repository. It is obvious this is an error.
		
			
				
	
	
		
			30 lines
		
	
	
		
			797 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			797 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* eslint-disable no-console */
 | |
| 
 | |
| const chalk = require('chalk');
 | |
| 
 | |
| const divider = chalk.gray('\n-----------------------------------');
 | |
| 
 | |
| /**
 | |
|  * Logger middleware, you can customize it to make messages more personal
 | |
|  */
 | |
| const logger = {
 | |
| 
 | |
|   // Called whenever there's an error on the server we want to print
 | |
|   error: (err) => {
 | |
|     console.error(chalk.red(err));
 | |
|   },
 | |
| 
 | |
|   // Called when express.js app starts on given port w/o errors
 | |
|   appStarted: (port) => {
 | |
| 
 | |
|     console.log(`
 | |
| Strapi plugin succesfully started in development mode. ${chalk.green('✓')}
 | |
| ${divider}
 | |
| ${chalk.bold('Access URL:')} ${chalk.magenta(`http://localhost:${port}${process.env.IS_ADMIN === 'true' ? '/admin' : '' }`)}${divider}
 | |
| ${chalk.blue(`Press ${chalk.italic('CTRL-C')} to stop`)}
 | |
|     `);
 | |
|   },
 | |
| };
 | |
| 
 | |
| module.exports = logger;
 |