You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: example-project/README.md
+2-14Lines changed: 2 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Alternatively, add `gem "logtail"` to your `Gemfile` manually and then run `bund
16
16
17
17
## Run the example project
18
18
19
-
Replace `<source-token>` with your actual source token in the `main.rb` file. You can find your source token by going to logtail.com -> sources -> edit.
19
+
Replace `<source-token>` with your actual source token in the `main.rb` file. You can find your source token by going to _logtail.com -> sources -> edit_.
20
20
21
21
To run the example application, run the following command adding your source token:
22
22
@@ -38,9 +38,7 @@ The `logger` instance we created in the installation section is used to send l
38
38
39
39
## Logging example
40
40
41
-
In this example, we will send two logs - DEBUG and INFO
42
-
43
-
### Ruby
41
+
In this example, we will send two logs - **DEBUG** and **INFO**
44
42
45
43
```ruby
46
44
# Send debug logs messages using the debug() method
@@ -50,16 +48,6 @@ logger.debug("Logtail is ready!")
50
48
logger.info("I am using Logtail!")
51
49
```
52
50
53
-
### Ruby on Rails
54
-
55
-
```ruby
56
-
# Send debug logs messages using the debug() method
57
-
Rails.logger.debug("Logtail is ready!")
58
-
59
-
# Send informative messages about interesting events using the info() method
0 commit comments