Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L LogThem
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Joseph Perthold
  • LogThem
  • Wiki
  • Location

Location · Changes

Page history
Create Location authored Aug 14, 2024 by Joseph Perthold's avatar Joseph Perthold
Hide whitespace changes
Inline Side-by-side
Location.md 0 → 100644
View page @ 37cc641b
There are a few Functions that can be used to achieve ones Goals!
<h4>Set Custom Path</h4>
Here you can set a custom Path, ex(/logs)
```java
.setCustomPath(String);
```
<h4>Use Default Path</h4>
This will tell the Plugin to use the Default path if none is provided.<br>
<b>This will be TRUE by default if no other path has been defined!</b>
```java
.useDefaultPath(boolean);
```
<h4>Use Path Preset</h4>
There are a few Path Presets listed below:
```java
SERVER_FOLDER,
PLUGIN_FOLDER
```
They can be used, by adding the following to your creation Command:
```java
.usePathPreset(SERVER_FOLDER);
//or
.usePathPreset(PLUGIN_FOLDER);
```
<b><=>SERVER_FOLDER<=></b><br>
If used without changing, will create a folder, under the server Directory, named<br>
<b>Name: %PLUGIN_NAME%log</b><br>
<b>Example: /LogThemlog</b>
<b><=>PLUGIN_FOLDER<=></b><br>
If used without changing, will create a folder under the <br><b>'/plugins/%PLUGIN_NAME%'</b> folder in the server Directory named<br>
<b>Name: log</b><br>
<b>Example: /plugins/LogThem/log</b>
<h4>Customized Presets</h4>
Preset Paths can also be modified (Used as a starting place)
By Selecting a Path and then putting <b>'.setSubPath(String)'</b> behind it, it will use the Selected path as a "Source":
```java
SERVER_FOLDER.setSubPath(String);
```
They can be applied by simply adding:
```java
.usePathPreset(SERVER_FOLDER.setSubPath(String));
```
<b><=>SERVER_FOLDER<=></b><br>
If used with changes, will create a folder, under the server Directory, named<br>
<b>Name: %SET_SUBPATH%</b><br>
<b>Example: /LogThemLogs</b>
<b><=>PLUGIN_FOLDER<=></b><br>
If used with changes, will create a folder under the <br><b>'/plugins/%SET_SUBPATH%'</b> folder in the server Directory named<br>
<b>Name: %SET_SUBPATH%</b><br>
<b>Example: /plugins/LogThem/LargeLogs</b>
\ No newline at end of file
Clone repository
  • File DateTimeFormat
  • Location
  • Log DateTimeFormat
  • Log Format
  • _sidebar
  • Home