Skip to content

Commit

Permalink
Repo name change (#12)
Browse files Browse the repository at this point in the history
* mnt: Update badges

* fix: Forward changes to Readme.md
  • Loading branch information
MEO265 authored Jan 7, 2024
1 parent 5ef87bf commit 13a402c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Easy-to-use, dependencyless Logger for R
<!-- badges: start -->
[![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)
<!-- badges: end -->

------------------------------------------------------------------------
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
<!-- badges: end -->

------------------------------------------------------------------------
Expand Down Expand Up @@ -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
```

Expand All @@ -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
Expand Down

0 comments on commit 13a402c

Please sign in to comment.