Commit 3199c42 Sebastian Schöps
committed
1 parent 476589c commit 3199c42 Copy full SHA for 3199c42
File tree 4 files changed +7
-5
lines changed
4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ php artisan loggy:key
16
16
```
17
17
The output of the command shows you your future Loggy link. Open this link now in a browser before you test your Loggy installation.
18
18
19
+ You can set the key ` LOGGY_KEY ` in ` .env ` to anything you want. Just remember that all apps with the same key share the same URL.
20
+
19
21
### Test Loggy
20
22
You can send a test entry to Loggy:
21
23
```
@@ -28,7 +30,7 @@ Just put the following in your Laravel code to send information to Loggy:
28
30
```
29
31
loggy($myMessage);
30
32
```
31
- ` myMessage ` can be anything that can be translated into JSON (usually you would use a string or an array) .
33
+ ` myMessage ` can be basically anything .
32
34
33
35
### Time measurement
34
36
You can start and stop a time measurement with
Original file line number Diff line number Diff line change 4
4
'enabled ' => env ('LOGGY_ENABLED ' , true ),
5
5
'url ' => env ('LOGGY_URL ' , 'https://loggy.live ' ),
6
6
'key ' => env ('LOGGY_KEY ' ),
7
- 'key-length ' => 60
7
+ 'default- key-length ' => 60
8
8
];
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class KeyGenerateCommand extends Command
28
28
*/
29
29
public function handle ()
30
30
{
31
- $ key = Str::random (config ('loggy.key-length ' ));
31
+ $ key = Str::random (config ('loggy.default- key-length ' ));
32
32
33
33
// Next, we will replace the loggy key in the environment file so it is
34
34
// automatically setup for this developer.
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ class Loggy
17
17
18
18
public function __construct ($ url , $ key )
19
19
{
20
- if (strlen ($ key ) != config ( ' loggy.key-length ' ) ) {
21
- throw new LoggyException ('Key must have a length of ' . config ( ' loggy.key-length ' ) . ' characters ' );
20
+ if (strlen ($ key ) < 1 ) {
21
+ throw new LoggyException ('Key must have a length of at least 1 characters ' );
22
22
}
23
23
$ this ->url = $ url ;
24
24
$ this ->key = $ key ;
You can’t perform that action at this time.
0 commit comments