Menu

Tree [0bd6bb] master /
 History

HTTPS access


File Date Author Commit
 Properties 2011-02-11 Corrupted Heart Corrupted Heart [0bd6bb] Initial commit
 LICENSE 2011-02-11 Corrupted Heart Corrupted Heart [0bd6bb] Initial commit
 Log.csproj 2011-02-11 Corrupted Heart Corrupted Heart [0bd6bb] Initial commit
 Logger.cs 2011-02-11 Corrupted Heart Corrupted Heart [0bd6bb] Initial commit
 README 2011-02-11 Corrupted Heart Corrupted Heart [0bd6bb] Initial commit

Read Me

////////////////////////////////////////////////////////////////////////////////////
// Author: Garth "Corrupted Heart" de Wet
// Email: GarthOfHearts@gmail.com
// Website: http://www.corruptedheart.co.cc
// 
// Project Name: Logger
// Project Summary: Provides file and console logging for console apps, optional 
// 		Error Logger that requires SQLite C# wrapper.
//
// License:
// Permission is hereby granted, free of charge (a donation is welcome at my website), to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
////////////////////////////////////////////////////////////////////////////////////

The source code for the actual logger alone is quite well commented however for the ErrorLogger it is not.
Uses Documentation comments so it will be easy to see what each method requires and the options they add.

There are two branches, the [master] contains only the Logger whereas the [PlusErrorLogging] also contains the error logging.

1. How To Use
2. How To Compile

1. HOW TO USE
Add a reference to the dll in your project.
Add
	using Log;
To the top of all files you wish to use the logger in.
Before you can start using the logger you have to use CreateLog once per program.
	Logger.CreateLog("path/to/app/log");
Then to write a line use
	Logger.WriteLine("String to write");
Or if you wish to write directly to file
	Logger.WriteToFile("String to save");
And once you are done with the logger, call
	Logger.SaveFile();

2. HOW TO COMPILE
If you are trying to compile the plain logger it should compile as is, unless you try to compile in MonoDevelop, which doesn't allow defaults for parameters.

If you are trying to compile with the ErrorLogger it should compile as is, or else you with have to check the project's reference. Same as above for MonoDevelop.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.