This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added logging information so that the full path can be obtained. Also reworked macosx product build a bit to help tycho generate the correct information.
- Loading branch information
1 parent
d0af179
commit a55fcc5
Showing
7 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...eworlds.xstreamer.core/src/us/nineworlds/xstreamer/model/template/SquadTemplateModel.java
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
36 changes: 36 additions & 0 deletions
36
bundles/us.nineworlds.xstreamer/src/us/nineworlds/xstreamer/Logger.java
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,36 @@ | ||
package us.nineworlds.xstreamer; | ||
|
||
import org.eclipse.core.runtime.ILog; | ||
import org.eclipse.core.runtime.IStatus; | ||
import org.eclipse.core.runtime.Status; | ||
|
||
public class Logger { | ||
|
||
static final ILog logger = Activator.getDefault().getLog(); | ||
|
||
|
||
public static void info(String message) { | ||
log(IStatus.INFO, IStatus.OK, message, null); | ||
} | ||
|
||
public static void error(String message, Throwable exception) { | ||
log(IStatus.ERROR, IStatus.ERROR, message, exception); | ||
} | ||
|
||
public static void error(String message) { | ||
log(IStatus.ERROR, IStatus.ERROR, message, null); | ||
} | ||
|
||
private static void log(int severity, int code, String message, Throwable exception) { | ||
log(createStatus(severity, code, message, exception)); | ||
} | ||
|
||
private static IStatus createStatus(int severity, int code, String message, Throwable exception) { | ||
return new Status(severity, Activator.BUNDLE_ID, code, message, exception); | ||
} | ||
|
||
private static void log(IStatus status) { | ||
logger.log(status); | ||
} | ||
|
||
} |
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