diff --git a/README.Rmd b/README.Rmd index 913488c..e00b59a 100644 --- a/README.Rmd +++ b/README.Rmd @@ -22,8 +22,8 @@ Easy-to-use, dependencyless Logger for R [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/loggit)](https://cran.r-project.org/package=loggit) [![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/loggit)](https://cran.r-project.org/package=loggit) -[![R-CMD-check](https://github.com/MEO265/loggit_private/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/MEO265/loggit_private/actions/workflows/R-CMD-check.yaml) -[![codecov](https://codecov.io/gh/MEO265/loggit_private/graph/badge.svg?token=DGPQGD4DUH)](https://codecov.io/gh/MEO265/loggit_private) +[![R-CMD-check](https://github.com/MEO265/loggit/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/MEO265/loggit/actions/workflows/R-CMD-check.yaml) +[![codecov](https://codecov.io/gh/MEO265/loggit/graph/badge.svg)](https://codecov.io/gh/MEO265/loggit) ------------------------------------------------------------------------ diff --git a/README.md b/README.md index 406d13c..3343c86 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/loggit)](https://cran.r-project.org/package=loggit) [![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/loggit)](https://cran.r-project.org/package=loggit) -[![R-CMD-check](https://github.com/MEO265/loggit_private/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/MEO265/loggit_private/actions/workflows/R-CMD-check.yaml) -[![codecov](https://codecov.io/gh/MEO265/loggit_private/graph/badge.svg?token=DGPQGD4DUH)](https://codecov.io/gh/MEO265/loggit_private) +[![R-CMD-check](https://github.com/MEO265/loggit/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/MEO265/loggit/actions/workflows/R-CMD-check.yaml) +[![codecov](https://codecov.io/gh/MEO265/loggit/graph/badge.svg)](https://codecov.io/gh/MEO265/loggit) ------------------------------------------------------------------------ @@ -44,13 +44,13 @@ the desired locations. ``` r loggit::message("This is a message") -#> {"timestamp": "2024-01-07T21:06:44+0100", "log_lvl": "INFO", "log_msg": "This is a message"} +#> {"timestamp": "2024-01-07T21:32:20+0100", "log_lvl": "INFO", "log_msg": "This is a message"} #> This is a message loggit::warning("This is a warning") -#> {"timestamp": "2024-01-07T21:06:44+0100", "log_lvl": "WARN", "log_msg": "This is a warning"} +#> {"timestamp": "2024-01-07T21:32:20+0100", "log_lvl": "WARN", "log_msg": "This is a warning"} #> Warning in loggit::warning("This is a warning"): This is a warning loggit::stop("This is an error") -#> {"timestamp": "2024-01-07T21:06:44+0100", "log_lvl": "ERROR", "log_msg": "This is an error"} +#> {"timestamp": "2024-01-07T21:32:20+0100", "log_lvl": "ERROR", "log_msg": "This is an error"} #> Error in loggit::stop("This is an error"): This is an error ``` @@ -75,18 +75,18 @@ become a structured log. ``` r loggit::loggit("ERROR", "This will log an error", anything_else = "you want to include") -#> {"timestamp": "2024-01-07T21:06:44+0100", "log_lvl": "ERROR", "log_msg": "This will log an error", "anything_else": "you want to include"} +#> {"timestamp": "2024-01-07T21:32:20+0100", "log_lvl": "ERROR", "log_msg": "This will log an error", "anything_else": "you want to include"} # Read log file into data frame to implement logic based on entries loggit::read_logs() #> timestamp log_lvl log_msg anything_else -#> 1 2024-01-07T21:06:44+0100 INFO This is a message -#> 2 2024-01-07T21:06:44+0100 WARN This is a warning -#> 3 2024-01-07T21:06:44+0100 ERROR This is an error -#> 4 2024-01-07T21:06:44+0100 INFO This is another message -#> 5 2024-01-07T21:06:44+0100 WARN This is another warning -#> 6 2024-01-07T21:06:44+0100 ERROR This is another error -#> 7 2024-01-07T21:06:44+0100 ERROR This will log an error you want to include +#> 1 2024-01-07T21:32:20+0100 INFO This is a message +#> 2 2024-01-07T21:32:20+0100 WARN This is a warning +#> 3 2024-01-07T21:32:20+0100 ERROR This is an error +#> 4 2024-01-07T21:32:20+0100 INFO This is another message +#> 5 2024-01-07T21:32:20+0100 WARN This is another warning +#> 6 2024-01-07T21:32:20+0100 ERROR This is another error +#> 7 2024-01-07T21:32:20+0100 ERROR This will log an error you want to include ``` Check out the