Projects tagged ‘minimal’


[35 total ]

1 Users

OverviewMinLog is a Java logging library. Key features: Low overhead Logging statements below a given level can be automatically removed by javac at compile time. Simple and efficient The API is ... [More] concise and very efficient at runtime. Extremely lightweight The entire project consists of one Java file with just over 100 non-comment lines of code. The JAR is 2.6kb (2kb with pack200). UsageMessages are logged using static methods: Log.info("Some message."); Log.debug("Error reading file: " + file, ex);A static import can be used to make the logging more concise: import static com.esotericsoftware.minlog.Log.*; // ... info("Some message."); debug("Error reading file: " + file, ex);While optional, for brevity the rest of this documentation assumes this static import is in place. If log statements from different libraries or areas of an application need to be differentiated, a category can be specified: info("some lib", "Some message."); debug("some lib", "Error reading file: " + file, ex);Log levelSetting the level will log that level, as well as all higher levels: Log.set(LEVEL_INFO);The levels are: LEVEL_NONE disables all logging. LEVEL_ERROR is for critical errors. The application may no longer work correctly. LEVEL_WARN is for important warnings. The application will continue to work correctly. LEVEL_INFO is for informative messages. Typically used for deployment. LEVEL_DEBUG is for debug messages. This level is useful during development. LEVEL_TRACE is for trace messages. A lot of information is logged, so this level is usually only needed when debugging a problem. Conditional loggingThe current log level can be checked before the message is logged: if (ERROR) error("Error reading file: " + file, ex); if (TRACE) { StringBuilder builder = new StringBuilder(); // Do work, append to the builder. trace(builder); }Checking the log level before calling the logging method is optional, but prevents unnecessary method calls and string concatenation for log levels that are disabled. Fixed logging levelsMinLog users can choose from the regular "minlog.jar" or from from a JAR file like "minlog-info.jar" which has a fixed logging level that cannot be changed at runtime (calls to Log.set() have no affect). During compilation, any conditional logging statements below the fixed level will be automatically optimized away by the Java compiler. Please see OverheadAndComparisons for more about the overhead when using MinLog with/without conditional logging and with/without a fixed logging level. The document also compares the MinLog overhead with log4j and java.util.logging. Output customizationThe default logger outputs messages in this format: time level: [category] messageWhere "time" is the time elapsed since the application started. For example: 00:00 TRACE: [kryo] Wrote string: moo 00:00 TRACE: [kryo] Wrote object: NonNullTestClass 00:01 TRACE: [kryo] Wrote string: this is some data 00:01 TRACE: [kryo] Compressed to 7.97% using: DeflateCompressor 00:12 TRACE: [kryo] Decompressed using: DeflateCompressor 00:12 TRACE: [kryo] Read string: this is some dataThe output can be customized: static public class MyLogger extends Logger { public void log (int level, String category, String message, Throwable ex) { StringBuilder builder = new StringBuilder(256); builder.append(new Date()); builder.append(' '); builder.append(level); builder.append('['); builder.append(category); builder.append("] "); builder.append(message); if (ex != null) { StringWriter writer = new StringWriter(256); ex.printStackTrace(new PrintWriter(writer)); builder.append('\n'); builder.append(writer.toString().trim()); } System.out.println(builder); } } // ... Log.set(new MyLogger());Using this mechanism, log messages can be filtered (eg, by category), written to a file, etc. [Less]
Created 3 months ago.

1 Users
 

A minimal Python wiki that runs on all possible servers with only one additional dependency (Jinja2).
Created over 2 years ago.

1 Users

AboutWhen I started using OS X in 2005 the one thing I missed most was Minesweeper. Because I lacked Minesweeper, I found myself unusually productive. In order to solve this problem, I decided it ... [More] would be a good idea to teach myself Cocoa and Objective-C and write MacSweeper. MacSweeper is free software. The source code available through SVN, and you can even browse it online through the wonders of Google. It is not the prettiest code, but it does provide a number of useful pointers on how to start developing a simple yet complete application in OS X. I claim no responsibility for anything this program does to your computer, but it should not be capabable of doing any harm. It will save your user preferences in the file org.conbere.MacSweeper.plist in your user defaults directory (usually ~/Library/Preferences/). ScreenshotsNo application is complete without screenshots, so here you go: MacSweeper version 0.4.0 running on OS X 10.6. [Less]
Created 4 months ago.

1 Users
 

Stripped down, bare, and extensible PHP framework made for code addicts
Created over 2 years ago.

1 Users

Mundy wants you to build dynamic websites, easily and without confusion. Mundy believes brevity is best, but remains understandable and expandable. Mundy's initial goal was Url Routing. With the idea ... [More] that Url Route's could be called trails, I thought of the wonderful forest that I live almost directly next to: Mundy Park. [Less]
Created 12 months ago.

0 Users

Dayvan is a simple, minimal WordPress theme.
Created about 1 year ago.

0 Users

minimal set of files from boost to use shared_ptr only
Created 4 months ago.

0 Users

Aboutminimal gtk, icons, and emerald theme focus on wasting as little screen space as possible to be used on small screens remove all borders and padding from themes, squash all theme elements, ... [More] use icons with as little detail as possible, so they still look good at small resolutions any contributions would be very welcome Contact [Less]
Created 6 months ago.

0 Users

What exactly is BeastClone?BeastClone is one of the only free (app is shareware, but free version is fully functional) solutions to creating a completely customizable OS X boot USB/FireWire/Volume and ... [More] possibly DVDs (support coming soon). It will create a minimal OS X installation containing your chosen apps. How does it work?BeastClone copies a carefully selected set of files from your current installation. Where a normal OS X install is 6-7GB, a BeastClone install is 1.75GB after installation (requires 1.81GB) to install 1 leaving plenty of room for your apps. Then the apps are copied along with any app support folders, pref files, and frameworks required for them to run 2 1 Numbers taken from a Snow Leopard variation, Leopard support is in the works, numbers unknown right now. 2 Excluding external binaries (must be copied by user) Licensing/PricingThe licensing/pricing details have not been finalized yet. The only thing I can promise for sure is that a free FULLY functional version of the program will be available without restriction. Paid users may get additional conveniences (once again, these details have not been finalized yet and will be posted when known). Whats happening right now?For progress information please take a look at the CurrentProgress wiki page Some screenshots [Less]
Created 3 months ago.

0 Users

phpbotti is a minimal, modular IRC bot programmed in PHP. It can be used for simple tasks, such as fetching certain info from a website to be shown on IRC (local weather, stock market info, the food ... [More] that they're serving in the cafeteria today and so on). Programming scripts for it is very easy and the package contains a few example scripts. [Less]
Created 4 months ago.