77
88<br />
99<div align =" center " >
10- <a href="https://github.com/TirsvadCLI/Linux.Distribution ">
10+ <a href="https://github.com/TirsvadCLI/Linux.Bash.Logger ">
1111 <img src="images/logo.png" alt="Logo" width="80" height="80">
1212 </a>
1313</div >
@@ -22,6 +22,7 @@ This is a shell script designed to handle logging for various processes. It can
2222- [ Functions] ( #functions )
2323- [ Usage] ( #usage )
2424- [ Testing] ( #testing )
25+ - [ Docker issues] ( #docker-issue )
2526- [ Contribution] ( #contribution )
2627- [ Code of conduct] ( #code-of-conduct )
2728
@@ -36,35 +37,35 @@ To use this logger script:
3637
3738### Clone the Repository
3839``` bash
39- git clone git@github.com:TirsvadCLI/Linux.Logger.git
40+ git clone git@github.com:TirsvadCLI/Linux.Bash. Logger.git
4041```
4142
4243## Functions
4344### Initialization
44- - ` tcli_linux_logger_init ()` : Initializes the logger, setting up output redirection and logging the start of the logger.
45+ - ` tcli_linux_bash_logger_init ()` : Initializes the logger, setting up output redirection and logging the start of the logger.
4546
4647### Logging Messages
47- - ` tcli_linux_logger_infoscreen ()` : Displays an info message during processing.
48- - ` tcli_linux_logger_infoscreenDone ()` : Shows a "DONE" message when a process is completed successfully.
49- - ` tcli_linux_logger_infoscreenFailed ()` : Displays a "FAILED" message, including an error message.
50- - ` tcli_linux_logger_infoscreenFailedExit ()` : Displays failure messages and exits the script with a specified error code.
51- - ` tcli_linux_logger_infoscreenWarn ()` : Displays a warning message.
48+ - ` tcli_linux_bash_logger_infoscreen ()` : Displays an info message during processing.
49+ - ` tcli_linux_bash_logger_infoscreenDone ()` : Shows a "DONE" message when a process is completed successfully.
50+ - ` tcli_linux_bash_logger_infoscreenFailed ()` : Displays a "FAILED" message, including an error message.
51+ - ` tcli_linux_bash_logger_infoscreenFailedExit ()` : Displays failure messages and exits the script with a specified error code.
52+ - ` tcli_linux_bash_logger_infoscreenWarn ()` : Displays a warning message.
5253
5354### Status Checking
54- - ` tcli_linux_logger_infoscreenStatus ()` : Checks the status of a command and logs either a failure or success message.
55+ - ` tcli_linux_bash_logger_infoscreenStatus ()` : Checks the status of a command and logs either a failure or success message.
5556
5657### Title Logging
57- - ` tcli_linux_logger_title ()` : Creates a formatted title box for better organization in the logs.
58+ - ` tcli_linux_bash_logger_title ()` : Creates a formatted title box for better organization in the logs.
5859
5960### File Logging
60- - ` tcli_linux_logger_file_info ()` : Logs informational messages to the log file.
61- - ` tcli_linux_logger_file_warn ()` : Logs warning messages.
62- - ` tcli_linux_logger_file_error ()` : Logs error messages.
63- - ` tcli_linux_logger_file ()` : Generic function to handle the actual file logging for various levels.
61+ - ` tcli_linux_bash_logger_file_info ()` : Logs informational messages to the log file.
62+ - ` tcli_linux_bash_logger_file_warn ()` : Logs warning messages.
63+ - ` tcli_linux_bash_logger_file_error ()` : Logs error messages.
64+ - ` tcli_linux_bash_logger_file ()` : Generic function to handle the actual file logging for various levels.
6465
6566## Usage
66- 1 . ` Source Logger .sh ` in the start of your script.
67- 2 . To use the logger, initialize it by calling ` tcli_linux_logger_init ("path/to/logfile.log")` with the desired log file path.
67+ 1 . ` Source Run .sh ` in the start of your script.
68+ 2 . To use the logger, initialize it by calling ` tcli_linux_bash_logger_init ("path/to/logfile.log")` with the desired log file path.
68693 . Use the functions provided to log messages at different stages of your process.
69704 . Check the log file for detailed information about process execution.
7071
@@ -76,10 +77,22 @@ docker-compose build
7677
7778To run the test in the Docker container, execute:
7879``` bash
79- docker run --rm -it tirsvadclilinuxlogger_debian_service:latest
80- ./test_Logger.sh
80+ docker run --rm -it tirsvadclilinuxbashlogger_debian_service:latest
8181```
8282
83+ In the docker console
84+ ``` bash
85+ bash test_Run.sh
86+ ```
87+
88+ ### Docker issue
89+
90+ Follow this guide
91+
92+ [ Step 1] ( https://docs.docker.com/engine/install/linux-postinstall/ )
93+
94+ [ Step 2] ( https://docs.docker.com/engine/security/rootless/ )
95+
8396## Contribution
8497See more [ here] ( CONTRIBUTING.md )
8598
@@ -89,26 +102,15 @@ See more [here](CODE_OF_CONDUCT.md)
89102<!-- MARKDOWN LINKS & IMAGES -->
90103<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
91104
92- [ contributors-shield ] : https://img.shields.io/github/contributors/TirsvadCLI/Linux.Logger?style=for-the-badge
93-
94- [ contributors-url ] : https://github.com/TirsvadCLI/Linux.Logger/graphs/contributors
95-
96- [ forks-shield ] : https://img.shields.io/github/forks/TirsvadCLI/Linux.Logger?style=for-the-badge
97-
98- [ forks-url ] : https://github.com/TirsvadCLI/Linux.Logger/network/members
99-
100- [ stars-shield ] : https://img.shields.io/github/stars/TirsvadCLI/Linux.Logger?style=for-the-badge
101-
102- [ stars-url ] : https://github.com/TirsvadCLI/Linux.Logger/stargazers
103-
104- [ issues-shield ] : https://img.shields.io/github/issues/TirsvadCLI/Linux.Logger?style=for-the-badge
105-
106- [ issues-url ] : https://github.com/TirsvadCLI/Linux.Logger/issues
107-
108- [ license-shield ] : https://img.shields.io/github/license/TirsvadCLI/Linux.Logger?style=for-the-badge
109-
110- [ license-url ] : https://github.com/TirsvadCLI/Linux.Logger/blob/master/LICENSE
111-
105+ [ contributors-shield ] : https://img.shields.io/github/contributors/TirsvadCLI/Linux.Bash.Logger?style=for-the-badge
106+ [ contributors-url ] : https://github.com/TirsvadCLI/Linux.Bash.Logger/graphs/contributors
107+ [ forks-shield ] : https://img.shields.io/github/forks/TirsvadCLI/Linux.Bash.Logger?style=for-the-badge
108+ [ forks-url ] : https://github.com/TirsvadCLI/Linux.Bash.Logger/network/members
109+ [ stars-shield ] : https://img.shields.io/github/stars/TirsvadCLI/Linux.Bash.Logger?style=for-the-badge
110+ [ stars-url ] : https://github.com/TirsvadCLI/Linux.Bash.Logger/stargazers
111+ [ issues-shield ] : https://img.shields.io/github/issues/TirsvadCLI/Linux.Bash.Logger?style=for-the-badge
112+ [ issues-url ] : https://github.com/TirsvadCLI/Linux.Bash.Logger/issues
113+ [ license-shield ] : https://img.shields.io/github/license/TirsvadCLI/Linux.Bash.Logger?style=for-the-badge
114+ [ license-url ] : https://github.com/TirsvadCLI/Linux.Bash.Logger/blob/master/LICENSE
112115[ linkedin-shield ] : https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
113-
114- [ linkedin-url ] : https://www.linkedin.com/in/jens-tirsvad-nielsen-13b795b9/
116+ [ linkedin-url ] : https://www.linkedin.com/in/jens-tirsvad-nielsen-13b795b9/
0 commit comments