Home

Awesome

SwifterLog

A framework in Swift to create and manage log entries in up to 5 destinations and on 8 levels.

SwifterLog is part of the Swiftfire webserver project.

The Swiftfire website

The Reference manual

The Installation manual on Swiftfire.nl or github

The User manual on Swiftfire.nl or github

Features

Installation

As an SPM package

To install SwifterLog type the following:

$ git clone https://github.com/Balancingrock/SwifterLog

This will create a directory SwifterLog with the project contained in it.

Go down in the directory that was created:

$ cd SwifterLog

Then perform a SPM build.

$ swift build

Adding to an Xcode project

In the Xcode project using the navigator panel select the target SwifterLog should be added to.

Then select the General tab and click the + sign of the Frameworks, Libraries, and Embedded Content section.

In the dropdown window select Add Other... and choose Add Package Dependency....

In the new dropdown window type https://github.com/Balancingrock/SwifterLog.git and click Next, Next and Finish.

Now use import SwifterLog in each source file where you need its capabilities.

Optional removal of Ascii, BRUtils, VJson and SwifterSockets dependency

By default SwifterLog also needs Ascii, BRUtils, VJson and SwifterSockets for the networking target. If the networking target is not needed, that code can be excluded by adding an Active Compilation Condition:

In the xcode project, the SwifterLog framework target, select the Build Settings and under Swift Compiler - Custom Flags add SWIFTERLOG_DISABLE_NETWORK_TARGET to the Active Compiler Conditions.

Also remove the Ascii, BRUtils, VJson and SwifterSockets from the Linked Frameworks and Libraries settings under the General tab for the SwifterLog target.

Version History

No new features planned. Updates are made on an ad-hoc basis as needed to support Swiftfire development.

2.2.2 & 2.2.3

2.2.1

2.2.0

2.1.1

2.1.0

2.0.1

2.0.0

1.7.1

1.7.0

1.6.0

1.5.0

1.4.0

1.3.0

1.2.0

1.1.2

1.1.1

1.1.0

1.0.1

1.0.0