-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Beta 5 add vagrantfile * Beta 6 add log (#33) * Add lombok logs * Beta 7 add jakson (#34) * Add jakson * Add java 20 * Beta 8 move torrent from cli to web api (#35)
- Loading branch information
Showing
77 changed files
with
1,344 additions
and
1,241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
bot/src/main/resources/log_properties/log4j-debug.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
log4j.logger.com.halushko.kinocat.core=ALL, CORE | ||
log4j.appender.CORE=org.apache.log4j.RollingFileAppender | ||
log4j.appender.CORE.File=/home/app/logs/bot/core.log | ||
log4j.appender.CORE.MaxFileSize=10240Kb | ||
log4j.appender.CORE.MaxBackupIndex=5 | ||
log4j.appender.CORE.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.CORE.layout.conversionPattern=%d{dd.MM.yyyy HH\\\:mm\\\:ss.SSS} [%-5p] <%t> <%c{2}> - %m%n | ||
|
||
log4j.logger.com.halushko.kinocat.bot=ALL, BOT | ||
log4j.appender.BOT=org.apache.log4j.RollingFileAppender | ||
log4j.appender.BOT.File=/home/app/logs/bot/app.log | ||
log4j.appender.BOT.MaxFileSize=10240Kb | ||
log4j.appender.BOT.MaxBackupIndex=5 | ||
log4j.appender.BOT.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.BOT.layout.conversionPattern=%d{dd.MM.yyyy HH\\\:mm\\\:ss.SSS} [%-5p] <%t> <%c{2}> - %m%n | ||
|
||
log4j.logger.com=ALL, OTHER | ||
log4j.logger.org=ALL, OTHER | ||
log4j.appender.OTHER=org.apache.log4j.RollingFileAppender | ||
log4j.appender.OTHER.File=/home/app/logs/bot/other.log | ||
log4j.appender.OTHER.MaxFileSize=10240Kb | ||
log4j.appender.OTHER.MaxBackupIndex=5 | ||
log4j.appender.OTHER.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.OTHER.layout.conversionPattern=%d{dd.MM.yyyy HH:mm:ss.SSS} [%-5p] <%t> <%c{2}> - %m%n |
24 changes: 24 additions & 0 deletions
24
bot/src/main/resources/log_properties/log4j-info.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
log4j.logger.com.halushko.kinocat.core=INFO, CORE | ||
log4j.appender.CORE=org.apache.log4j.RollingFileAppender | ||
log4j.appender.CORE.File=/home/app/logs/bot/core.log | ||
log4j.appender.CORE.MaxFileSize=10240Kb | ||
log4j.appender.CORE.MaxBackupIndex=5 | ||
log4j.appender.CORE.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.CORE.layout.conversionPattern=%d{dd.MM.yyyy HH\\\:mm\\\:ss.SSS} [%-5p] <%t> <%c{2}> - %m%n | ||
|
||
log4j.logger.com.halushko.kinocat.bot=INFO, BOT | ||
log4j.appender.BOT=org.apache.log4j.RollingFileAppender | ||
log4j.appender.BOT.File=/home/app/logs/bot/app.log | ||
log4j.appender.BOT.MaxFileSize=10240Kb | ||
log4j.appender.BOT.MaxBackupIndex=5 | ||
log4j.appender.BOT.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.BOT.layout.conversionPattern=%d{dd.MM.yyyy HH\\\:mm\\\:ss.SSS} [%-5p] <%t> <%c{2}> - %m%n | ||
|
||
log4j.logger.com=INFO, OTHER | ||
log4j.logger.org=INFO, OTHER | ||
log4j.appender.OTHER=org.apache.log4j.RollingFileAppender | ||
log4j.appender.OTHER.File=/home/app/logs/bot/other.log | ||
log4j.appender.OTHER.MaxFileSize=10240Kb | ||
log4j.appender.OTHER.MaxBackupIndex=5 | ||
log4j.appender.OTHER.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.OTHER.layout.conversionPattern=%d{dd.MM.yyyy HH:mm:ss.SSS} [%-5p] <%t> <%c{2}> - %m%n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
java -Dlog4j.configuration=file:/home/app/log4j-${LOGS_LEVEL}.properties -jar /home/app/app.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
FROM openjdk:8-alpine | ||
FROM openjdk:20-ea-35-jdk-slim | ||
COPY bot-*.jar /home/app/app.jar | ||
ENTRYPOINT ["java", "-jar", "/home/app/app.jar"] | ||
COPY ./src/main/resources/log_properties /home/app | ||
COPY ./src/main/resources/scripts /home/app | ||
RUN chmod +X /home/app/*.sh | ||
ENTRYPOINT ["sh", "/home/app/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
FROM openjdk:8-alpine | ||
FROM openjdk:20-ea-35-jdk-slim | ||
COPY file-*.jar /home/app/app.jar | ||
ENTRYPOINT ["java", "-jar", "/home/app/app.jar"] | ||
COPY ./src/main/resources/log_properties /home/app | ||
COPY ./src/main/resources/scripts /home/app | ||
RUN chmod +X /home/app/*.sh | ||
ENTRYPOINT ["sh", "/home/app/run.sh"] |
Oops, something went wrong.