forked from mouredev/roadmap-retos-programacion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mouredev#4540 from AChapeton/main
mouredev#25 - TypeScript, JavaScript, Python
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Mensaje de texto generico | ||
console.log('Mensaje general') | ||
|
||
// Mensaje informativo | ||
console.info('Mensaje informativo') | ||
|
||
// Mensaje de advertencia | ||
console.warn('Mensaje de advertencia') | ||
|
||
// Mensaje de error | ||
console.error('Mensaje de error') | ||
|
||
// Limpiar consola | ||
console.clear() | ||
|
||
// Grupo de mensajes | ||
console.group('Titulo del grupo de logs') | ||
console.log('Primera linea') | ||
console.info('Segunda linea') | ||
console.error('Tercera linea') | ||
console.groupEnd() | ||
|
||
// Logs para tomar tiempo de procesos | ||
console.time('Inicio de proceso') | ||
// Proceso para testear | ||
console.timeEnd() | ||
|
||
// Tablas | ||
console.table(["manzanas", "peraas", "bananas"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import logging | ||
|
||
# Mensaje generico | ||
logging.debug('Este es un mensaje generico') | ||
|
||
# Mensaje informativo | ||
logging.info('Este es un mensaje informativo') | ||
|
||
# Mensaje de advertencia | ||
logging.warning('Este es un log para mostrar una advertencia') | ||
|
||
# Mensaje de error | ||
logging.error('Este es un mensaje de error') | ||
|
||
# Mensaje critico | ||
logging.critical('Este es un mensaje de error critico') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Mensaje de texto generico | ||
console.log('Mensaje general') | ||
|
||
// Mensaje informativo | ||
console.info('Mensaje informativo') | ||
|
||
// Mensaje de advertencia | ||
console.warn('Mensaje de advertencia') | ||
|
||
// Mensaje de error | ||
console.error('Mensaje de error') | ||
|
||
// Limpiar consola | ||
console.clear() | ||
|
||
// Grupo de mensajes | ||
console.group('Titulo del grupo de logs') | ||
console.log('Primera linea') | ||
console.info('Segunda linea') | ||
console.error('Tercera linea') | ||
console.groupEnd() | ||
|
||
// Logs para tomar tiempo de procesos | ||
console.time('Inicio de proceso') | ||
// Proceso para testear | ||
console.timeEnd() | ||
|
||
// Tablas | ||
console.table(["manzanas", "peraas", "bananas"]); |