aharren / LibComponentLogging-Core

A small logging library for Objective-C applications (Mac OS X and iPhone OS/iOS) which provides conditional logging based on log levels and log components. Additionally, different logging strategies can be used, e.g. writing log messages to a file or sending them to the system log, while using the same logging interface.
http://0xc0.de/LibComponentLogging
110 stars 11 forks source link

Using %s directive in CFString warning in XCode 6.3 #29

Closed 4PixelsDev closed 6 months ago

4PixelsDev commented 9 years ago

After update to XCode 6.3 the following warning has shown: "Using %s directive in CFString which is being passed as a formatting argument to the formatting CFfunction"

The warning point to # define _lcl_logger(_component, _level, _format, ...) in lcl.h file

4PixelsDev commented 9 years ago

The issue is reproducible in "LibComponentLogging-LogFile-Example project".

aharren commented 9 years ago

Do you use the NSLog-based logger? It looks like the %s warnings originate from the added fields for component, level, file, function.