example-project/README.md in logtail-rails-0.1.7 vs example-project/README.md in logtail-rails-0.1.8
- old
+ new
@@ -9,13 +9,19 @@
bundle install
```
This will install all dependencies listed in the `Gemfile.lock` file.
- ## Run the example project
+Then replace `<SOURCE_TOKEN>` in `config/application.rb` with your actual source token which you can find by going to [Better Stack](https://logs.betterstack.com/) -> Sources -> Edit.
+
+```ruby
+config.logger = Logtail::Logger.create_default_logger("<YOUR_ACTUAL_SOURCE_TOKEN>")
+```
+
+## Run the example project
- To run the example application, run the following command:
+To run the example application, run the following command:
```bash
rails server
```
@@ -66,11 +72,11 @@
"line": 6,
"frame": null,
"frame_label": "<main>"
},
"system": {
- "hostname": "hostname"
+ "hostname": "hostname",
"pid": 1234
}
}
}
@@ -85,11 +91,11 @@
"line": 6,
"frame": null,
"frame_label": "<main>"
},
"system": {
- "hostname": "hostname"
+ "hostname": "hostname",
"pid": 1234
}
}
}
```
@@ -128,11 +134,11 @@
"line": 7,
"frame": null,
"frame_label": "<main>"
},
"system": {
- "hostname": "hostname"
+ "hostname": "hostname",
"pid": 1234
}
}
}
```
@@ -164,10 +170,10 @@
"line": 2,
"frame": null,
"frame_label": "<main>"
},
"system": {
- "hostname": "hostname"
+ "hostname": "hostname",
"pid": 1234
},
"user": {
"id": 123
}