Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lesson9 task1 #8

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/checkstyle-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

458 changes: 458 additions & 0 deletions .idea/dbnavigator.xml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/javafordev.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/hamcrest_2_1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/jaxb_api_2_3_1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/junit_4_12.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/log4j_1_2_17.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions log4j.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jakarta.apache.org/log4j/ ">
<appender name="TxtAppender" class="org.apache.log4j.FileAppender">
<param name="Encoding" value="UTF-8"/>
<param name="File" value="/Users/Admin/Documents/javafordev/src/com/javafordev/lesson9/task1/log/log.txt"/>
<layout class="org.apache.log4j.PatternLayout" >
<param name="ConversionPattern" value="%d{dd.MM.yyyy HH:mm:ss} [%t] %-5p %c - %m%n"/>
</layout>
<filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMax" value="WARN"/>
<param name="LevelMin" value="INFO"/>
</filter>
</appender>
<logger name="beer-logger">
<level value="info"/>
</logger>
<root>
<appender-ref ref="TxtAppender"/>
</root>
</log4j:configuration>
24 changes: 24 additions & 0 deletions out/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#3. log4j.properties
#Create a log4j.properties file and put it into the resources folder. Refer to the step #1 above.
#
#Note
#For standalone Java app, make sure the log4j.properties file is under the project/classes directory
#For Java web applications, make sure the log4j.properties file is under the WEB-INF/classes directory
log4j.properties=

# Root logger option
log4j.rootLogger=DEBUG, stdout, file

# Redirect log messages to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Redirect log messages to a log file, support file rolling.
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=/Users/Admin/Documents/javafordev/src/com/javafordev/lesson9/task1/logs/log.txt
log4j.appender.file.MaxFileSize=5MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<tns:BeerOrder xmlns:tns="http://www.beer-shop/beer">
<tns:Beer article="42467">
<tns:name>Porter And Sea</tns:name>
<tns:type>Dark</tns:type>
<tns:alcohol>true</tns:alcohol>
<tns:manufacter>Alivaria</tns:manufacter>
ilyalychkou marked this conversation as resolved.
Show resolved Hide resolved
<tns:ingredient>Water</tns:ingredient>
<tns:ingredient>Malt</tns:ingredient>
<tns:ingredient>Hop</tns:ingredient>
<tns:ingredient>Sugar</tns:ingredient>
<tns:quantity>500</tns:quantity>
<tns:_char>
<tns:content>4.5</tns:content>
<tns:transparency>50.0%</tns:transparency>
<tns:filtered>true</tns:filtered>
<tns:nutrition>43</tns:nutrition>
<tns:bottling>
<tns:volume>0.33</tns:volume>
<tns:material>Glass</tns:material>
</tns:bottling>
</tns:_char>
</tns:Beer>
<tns:Beer article="395672">
<tns:name>Koronet</tns:name>
<tns:type>Light</tns:type>
<tns:alcohol>false</tns:alcohol>
<tns:manufacter>Lidskoe</tns:manufacter>
<tns:ingredient>Water</tns:ingredient>
<tns:ingredient>Malt</tns:ingredient>
<tns:ingredient>Hop</tns:ingredient>
<tns:ingredient>Lemon</tns:ingredient>
<tns:quantity>2000</tns:quantity>
<tns:_char>
<tns:content>3.5</tns:content>
<tns:transparency>55.0%</tns:transparency>
<tns:filtered>true</tns:filtered>
<tns:nutrition>20</tns:nutrition>
<tns:bottling>
<tns:volume>0.5</tns:volume>
<tns:material>Tin</tns:material>
</tns:bottling>
</tns:_char>
</tns:Beer>
<tns:Beer article="543">
<tns:name>Raw</tns:name>
<tns:type>Light</tns:type>
<tns:alcohol>true</tns:alcohol>
<tns:manufacter>Tuborg</tns:manufacter>
<tns:ingredient>Malt</tns:ingredient>
<tns:ingredient>Water</tns:ingredient>
<tns:ingredient>Hop</tns:ingredient>
<tns:ingredient>Needles</tns:ingredient>
<tns:quantity>2500</tns:quantity>
<tns:_char>
<tns:content>6.5</tns:content>
<tns:transparency>25.0%</tns:transparency>
<tns:filtered>false</tns:filtered>
<tns:nutrition>66</tns:nutrition>
<tns:bottling>
<tns:volume>5.0</tns:volume>
<tns:material>Plastic</tns:material>
</tns:bottling>
</tns:_char>
</tns:Beer>
</tns:BeerOrder>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<companies xmlns="http://www.example.com/companies">
<company>
<name>EPAM</name>
<peopleCount>1000</peopleCount>
</company>
</companies>
Loading