-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This pulls in my `log4j-config-gui` library from https://github.com/apjanke/log4j-config-gui.
- Loading branch information
Showing
9 changed files
with
104 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.0 | ||
0.2.0 |
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,23 @@ | ||
function gen_dummy_log_entries(n) | ||
% Generate a bunch of dummy log entries | ||
% | ||
% Example: | ||
% logm.Log4jConfigurator.setLevels({'foo.bar', 'DEBUG'}); | ||
% gen_dummy_log_entries | ||
|
||
if nargin < 1 || isempty(n); n = 50; end | ||
|
||
logDb = logm.Logger.getLogger('foo.bar.Database'); | ||
logAlgo = logm.Logger.getLogger('foo.bar.Algorithm'); | ||
for i = 1:n | ||
item = sprintf('id%d', round(rand*10000)); | ||
te = rand * 0.15; pause(te); | ||
logDb.debug('Fetched data for %s in %0.03f s', item, te); | ||
te = rand * 0.15; pause(te); | ||
logAlgo.debug('Ran regression on %s in %0.03f s', item, te); | ||
if rand < 0.2 | ||
logAlgo.warn('Found %d missing values in item %s', round(rand*10), item); | ||
end | ||
end | ||
|
||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
log4j1-config-gui | ||
========================= | ||
|
||
This is the log4j1-config-gui library by Andrew Janke. It's available on GitHub at https://github.com/apjanke/log4j-config-gui. | ||
|
||
## License | ||
|
||
Apache 2.0 License. |
Binary file not shown.