Skip to content

ZyadNotCodingWell/Cryptica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

import logging

Create a logger

logger = logging.getLogger(name)

Set the logging level

logger.setLevel(logging.DEBUG)

Create a file handler and a stream handler

file_handler = logging.FileHandler('app.log') stream_handler = logging.StreamHandler()

Create a formatter and set it for the handlers

formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') file_handler.setFormatter(formatter) stream_handler.setFormatter(formatter)

Add the handlers to the logger

logger.addHandler(file_handler) logger.addHandler(stream_handler)

Example usage:

logger.debug('This is a debug message') logger.info('This is an info message') logger.warning('This is a warning message') logger.error('This is an error message') logger.critical('This is a critical message')

About

A fullstack project, requiring FastAPI and NextJS for crypto visualization and forecasting, currently paused with ongoing research with features and architecture designs for ROI optimization on simulations

https://cryptica-seven.vercel.app (not working, don't bother)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors