Skip to content

Commit

Permalink
0.1.3.1
Browse files Browse the repository at this point in the history
Updated README.md
  • Loading branch information
Bernso committed Dec 19, 2024
1 parent 96f2929 commit 30bd3b1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 28 deletions.
71 changes: 44 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ This package is an advanced logging system that allows the user to create custom
pip install boLogger --upgrade
```

# Features

- Colour
- Create your own custom logger
- Text wrapping (the text will never be on the same level as the logger info)
- Easy use

# Options

### Colours
Expand All @@ -34,7 +41,9 @@ CustomLog() includes everything in the Logging() class and more
color: str,
bold: bool,
underlined: bool
) # This is used to create deafults for the custom_log() method and
) # This is used to create deafults for the custom_log() method
# Meaning if the user wants to use the cutom_log() method
# They only need to use the text parameter

.custom_log(
text: str,
Expand All @@ -45,40 +54,48 @@ CustomLog() includes everything in the Logging() class and more
) # If you already have a deafult set you will only need to enter the text param
# But if you have not, you will need to enter all params


.view_deafult() # method to view the current deafult settings
# Method to view the current deafult settings
# It returns it, not printing
.view_deafult()

.add_color(colour) # your own colour code (must start with '\033[')
```

# Example Usage

```py
# Make sure to define the class
mylogger = Logging()
print(mylogger) # Explains the module
mylogger.header("Header")
mylogger.info("Info")
mylogger.warning("Warning")
mylogger.error("Error")
mylogger.success("Success")
mylogger.beans("Beans")
mylogger.info("This is a very long log message that is going to spill over to the next line and needs to be properly indented for better readability.")


customLogger = CustomLog()
print(customLogger) # Explains the module
customLogger.set_default(title="beansareyummy", color='Blue') # Bold and underlined are automatically set to false
customLogger.view_deafult()
customLogger.custom_log("custom")
customLogger.info("custom")
```
### Logging()
print(Logging()) # Explains the module

# Features
.header("Header")

.info("Info")

.warning("Warning")

.error("Error")

.success("Success")

.beans("Beans")

.info("This is a very long log message that is going to spill over to the next line and needs to be properly indented for better readability.")



### CustomLog()
# Explains the module
print(CustomLog())

# Bold and underlined are automatically set to false
.set_default(title="beansareyummy", color='Blue')

.view_deafult()

.custom_log("custom")

.info("custom")
```

- Colour
- Create your own custom logger
- Text wrapping (the text will never be on the same level as the logger info)
- Easy use


2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "boLogger" # Use a unique name
version = "0.1.3" # Start with a low version number
version = "0.1.3.1" # Start with a low version number
description = "An advanced logging system used for clear understanding of your logs."
authors = ["Bernso <Bernso@duck.com>"]
license = "MIT" # Choose an appropriate license
Expand Down

0 comments on commit 30bd3b1

Please sign in to comment.