1
00:00:00,910 --> 00:00:08,200
I just want to take a moment to go over why this site, wider application wide config is so useful right

2
00:00:08,200 --> 00:00:08,400
now.

3
00:00:08,410 --> 00:00:12,420
We only have two values in their use, cash and template cash.

4
00:00:12,850 --> 00:00:14,600
But I can add something to this.

5
00:00:14,620 --> 00:00:19,850
For example, let's add let's add a logger, and we're not going to do anything with it right now.

6
00:00:19,870 --> 00:00:23,170
We will when we get to improved air handling.

7
00:00:23,380 --> 00:00:31,510
But if I add a single member to this and I want to call it info log, and if a log is just going to

8
00:00:31,510 --> 00:00:38,560
be a a member on this app config struct, that allows me to write information to a log file and we're

9
00:00:38,560 --> 00:00:39,940
not going to do anything with it for a while.

10
00:00:39,940 --> 00:00:46,000
But I can add it just by saying I want to add a pointer to log logger, which is something built into

11
00:00:46,000 --> 00:00:50,980
the standard library that writes to log files or writes to the terminal or writes wherever we tell it.

12
00:00:50,980 --> 00:00:54,130
To write, we can write it to a file, we can read it to the terminal window.

13
00:00:54,400 --> 00:00:56,600
We can even write it to the database if we wanted to.

14
00:00:57,010 --> 00:00:58,740
Once we have the database set up, of course.

15
00:00:59,110 --> 00:01:00,280
So I've added that.

16
00:01:00,280 --> 00:01:06,220
And now just by the very fact that it's been added to this, the struct this app config struct, it's

17
00:01:06,220 --> 00:01:12,970
available to every part of my application that has access to the app config and that is incredibly useful.

18
00:01:13,480 --> 00:01:15,070
So I'm going to leave that in there for right now.

19
00:01:15,070 --> 00:01:19,780
We won't do anything with it for quite a while until we get to the centralized error handling part of

20
00:01:19,780 --> 00:01:20,590
our our course.

21
00:01:21,070 --> 00:01:22,270
But there it is.

22
00:01:22,360 --> 00:01:28,210
And that's one of the things that makes this site wide app config app configuration so useful.
