tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

logging.py (566B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
      4 
      5 import click
      6 
      7 
      8 def debug(message):
      9    click.echo(click.style("Debug", fg="cyan") + f": {message}")
     10 
     11 
     12 def info(message):
     13    click.echo(click.style("Info", fg="white") + f": {message}")
     14 
     15 
     16 def warning(message):
     17    click.echo(click.style("Warning", fg="yellow") + f": {message}")
     18 
     19 
     20 def error(message):
     21    click.echo(click.style("Error", fg="red") + f": {message}")