Skip to content

Commit

Permalink
Update log and data file to gourmetgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
guanquann committed Apr 13, 2024
1 parent f0e484e commit 76be0e1
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
Binary file removed GourmetGrid User Guide.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ GourmetGrid data are saved in the hard disk automatically after any command that

### Editing the data file

GourmetGrid data are saved automatically as a JSON file `[JAR file location]/data/addressbook.json`. Advanced users are welcome to update data directly by editing that data file.
GourmetGrid data are saved automatically as a JSON file `[JAR file location]/data/gourmetgrid.json`. Advanced users are welcome to update data directly by editing that data file.

<box type="warning" seamless>

Expand All @@ -438,7 +438,7 @@ Furthermore, certain edits can cause GourmetGrid to behave in unexpected ways (e
## FAQ

**Q**: How do I transfer my data to another Computer?<br>
**A**: Install the app in the other computer and overwrite the empty data file `[JAR file location]/data/addressbook.json` it creates with the file that contains the data of your previous GourmetGrid home folder.
**A**: Install the app in the other computer and overwrite the empty data file `[JAR file location]/data/gourmetgrid.json` it creates with the file that contains the data of your previous GourmetGrid home folder.

--------------------------------------------------------------------------------------------------------------------

Expand Down
Binary file modified docs/images/Ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class MainApp extends Application {

@Override
public void init() throws Exception {
logger.info("=============================[ Initializing AddressBook ]===========================");
logger.info("=============================[ Initializing GourmetGrid ]===========================");
super.init();

AppParameters appParameters = AppParameters.parse(getParameters());
Expand Down Expand Up @@ -81,12 +81,12 @@ private Model initModelManager(Storage storage, ReadOnlyUserPrefs userPrefs) {
addressBookOptional = storage.readAddressBook();
if (!addressBookOptional.isPresent()) {
logger.info("Creating a new data file " + storage.getAddressBookFilePath()
+ " populated with a sample AddressBook.");
+ " populated with a sample version of GourmetGrid.");
}
initialData = addressBookOptional.orElseGet(SampleDataUtil::getSampleAddressBook);
} catch (DataLoadingException e) {
logger.warning("Data file at " + storage.getAddressBookFilePath() + " could not be loaded."
+ " Will be starting with an empty AddressBook.");
+ " Will be starting with an empty version of GourmetGrid.");
initialData = new AddressBook();
}

Expand Down Expand Up @@ -170,13 +170,13 @@ protected UserPrefs initPrefs(UserPrefsStorage storage) {

@Override
public void start(Stage primaryStage) {
logger.info("Starting AddressBook " + MainApp.VERSION);
logger.info("Starting GourmetGrid " + MainApp.VERSION);
ui.start(primaryStage);
}

@Override
public void stop() {
logger.info("============================ [ Stopping Address Book ] =============================");
logger.info("============================ [ Stopping GourmetGrid ] =============================");
try {
storage.saveUserPrefs(model.getUserPrefs());
} catch (IOException e) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/commons/core/LogsCenter.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class LogsCenter {
private static final int MAX_FILE_COUNT = 5;
private static final int MAX_FILE_SIZE_IN_BYTES = (int) (Math.pow(2, 20) * 5); // 5MB
private static final String LOG_FILE = "addressbook.log";
private static final String LOG_FILE = "gourmetgrid.log";
private static final Logger logger; // logger for this class
private static Logger baseLogger; // to be used as the parent of all other loggers created by this class.
private static Level currentLogLevel = Level.INFO;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/UserPrefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class UserPrefs implements ReadOnlyUserPrefs {

private GuiSettings guiSettings = new GuiSettings();
private Path addressBookFilePath = Paths.get("data" , "addressbook.json");
private Path addressBookFilePath = Paths.get("data" , "gourmetgrid.json");

/**
* Creates a {@code UserPrefs} with default values.
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/seedu/address/model/util/SampleDataUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ public class SampleDataUtil {
public static Person[] getSamplePersons() {
return new Person[] {
new Person(new Name("Alex Yeoh"), new Phone("87438807"), new Email("[email protected]"),
new Address("Blk 30 Geylang Street 29, #06-40"), new Company("Alex Catering"),
new Address("Blk 30 Geylang Street 29, #01-40"), new Company("Alex Catering"),
getTagSet("catering")),
new Person(new Name("Bernice Yu"), new Phone("99272758"), new Email("[email protected]"),
new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18"), new Company("Big Porks"),
new Address("Blk 30 Lorong 3 Serangoon Gardens Market, #01-18"), new Company("Big Porks"),
getTagSet("fresh", "pork")),
new Person(new Name("Charlotte Oliveiro"), new Phone("93210283"), new Email("[email protected]"),
new Address("Blk 11 Ang Mo Kio Street 74, #11-04"), new Company("Oliveiro Olives"),
new Address("Blk 11 Ang Mo Kio Street 74, #01-04"), new Company("Oliveiro Olives"),
getTagSet("olives")),
new Person(new Name("David Li"), new Phone("91031282"), new Email("[email protected]"),
new Address("Blk 436 Serangoon Gardens Street 26, #16-43"), new Company("Chicken and Egg"),
new Address("Blk 436 Serangoon Gardens Street 26, #01-43"), new Company("Chicken and Egg"),
getTagSet("eggs", "chicken")),
new Person(new Name("Irfan Ibrahim"), new Phone("92492021"), new Email("[email protected]"),
new Address("Blk 47 Tampines Street 20, #17-35"), new Company("Fresh Frozen"),
getTagSet("frozen", "unfresh"))
new Address("Blk 47 Tampines Street 20, #01-35"), new Company("Fresh Frozen"),
getTagSet("frozen", "fresh"))
};
}

Expand Down

0 comments on commit 76be0e1

Please sign in to comment.