Skip to content

Commit

Permalink
0.2.6
Browse files Browse the repository at this point in the history
fixed logging bug
  • Loading branch information
jangdan committed Jan 28, 2015
1 parent 370f785 commit 45170e3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 2 additions & 0 deletions src/leocarbon/pnf/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import javax.swing.border.*;
import javax.swing.text.*;
import static leocarbon.pnf.PrimeNumberFinder.PNF;
import org.apache.log4j.PropertyConfigurator;

public class Options extends JPanel implements ActionListener {
public JCheckBox autoscroll;
Expand Down Expand Up @@ -184,6 +185,7 @@ public void actionPerformed(ActionEvent AE) {
AlertAfterFinish = false;
} break;
case "logging":
if(!dologging) PropertyConfigurator.configure(getClass().getResource("/leocarbon/pnf/logging/log4j.properties"));
dologging = logging.isSelected();
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/leocarbon/pnf/PrimeNumberFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void main(String[] arguments) {
}
PNF = new PrimeNumberFinder();
} public PrimeNumberFinder() {
PropertyConfigurator.configure(getClass().getResource("/leocarbon/pnf/logging/log4j.properties"));
if(dologging) PropertyConfigurator.configure(getClass().getResource("/leocarbon/pnf/logging/log4j.properties"));

//Extra implementations for Mac OS
if(System.getProperty("os.name").toLowerCase().contains("mac")){
Expand Down
14 changes: 4 additions & 10 deletions version.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
#Prime Number Finder

####by Daniel Jang

<https://electricmango.github.io>

<minhyukjang@gmail.com>

---
version.md
---
#version.md

Releases
--------------
######0.2.6.0 (1.28.15)
* logging is an option now

######0.2.5.0 (11.13.14)
* actually usable
* output prime numbers to a (text) file of your choice.
Expand Down
3 changes: 3 additions & 0 deletions version.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ version.txt

Releases
--------------
0.2.6.0 (1.28.15)
- logging is an option now

0.2.5.0 (11.13.14)
- actually usable
- output prime numbers to a (text) file of your choice.
Expand Down

0 comments on commit 45170e3

Please sign in to comment.