Commit Graph

105 Commits

Author SHA1 Message Date
ffried 4986a03eb1 Update copyright from 2024 to 2025 2025-01-07 08:54:43 +01:00
ffried 3eeda4aa39 Update copyright from 2023 to 2024 2024-01-03 17:38:14 +01:00
Florian Friedrich ceafd3f039 Update copyright for 2023 2023-01-30 17:15:25 +01:00
Florian Friedrich c1b9149047 Update Xcode-files to Xcode 14.1 2022-11-02 15:09:37 +01:00
Florian Friedrich 27b7b1446c Update copyright to 2022 2022-05-18 16:05:49 +02:00
Florian Friedrich a3a940f3e2 Update Copyright to 2021 2021-03-02 10:58:09 +01:00
Florian Friedrich 1cefe898c4 Update Xcode projects to require Xcode 10+ 2020-10-01 16:02:17 +02:00
Florian Friedrich 55de9ac35f Update Copyright for 2020 2020-01-23 17:59:54 +01:00
Dmitry Lobanov f3b1127fdd core: migration to Sources root directory. 2019-07-16 20:11:55 +03:00
Bogdan Poplauschi e5f15c24b1 Renamed Xcode folder to Demos - contains remaining demo projects 2014-08-11 17:04:50 +09:00
Bogdan Poplauschi 935c139ec6 Moved static frameworks files to separate folder Framework 2014-08-11 17:04:49 +09:00
Bogdan Poplauschi 99a28b9d36 Removed all the "C" log macros (as suggested in #220). By replacing sel_getName(_cmd) with __PRETTY_FUNCTION__, there is not need for the separation of Obj-C and C macros.
Updated the Mobile libtest project to demonstrate that it's working (had to use a formatter so the function/method names are used).
2014-08-11 17:04:49 +09:00
Bogdan Poplauschi 95ce35c9d5 Replaced #312 - aslresponse_next and aslresponse_free deprecated, replaced with asl_next and asl_release
- Updated a Podfile.lock for the CaptureASL project
2014-08-08 12:17:54 +03:00
Ernesto Rivera 0a7b7514eb Merge pull request #315 from hsin919/master
Bug fix
2014-08-05 11:28:45 +09:00
hsin 4b8009b98b Bug fix
CompresingLogFileManager will stop compressing files once there exist
no .log files.
2014-08-01 09:26:42 +08:00
Bogdan Poplauschi 68222fd2b7 Updated the CLI podfile so that is specifies the deployment target for the osx platform (not specifying means 10.6) 2014-07-07 10:32:45 +03:00
liviur 093311661d Changed the Build Active Architecture Only to NO
This is the simpliest way to solve when using lumberjack as a submodule and building it for cases like the app only supports armv7 and debugging on armv7s or arm64.
2014-06-19 11:59:44 +03:00
Robbie Hanson 4656d3bef5 Minor performance optimization: Use compiler macros to skip checks within [DDLogMessage init] when compiling for newer OS versions. 2014-06-13 15:39:03 -07:00
Sebastian Keller 254ed7726f Fix Travis build 2014-05-20 03:22:50 +02:00
Ernesto Rivera 93f1b68fdf Merge pull request #256 from tipbit/CompressingLogFileManager-set-file-protection
Set NSFileProtectionKey on the temporary file created during compression.
2014-05-15 17:02:34 +09:00
Evan DeLaney 5f2ec95c25 Follow Apple's guidelines for iOS Static Libraries
Uses the Xcode 5.1 iOS Static Library template and methodology outlined in the tech note linked below

https://developer.apple.com/library/ios/technotes/iOSStaticLibraries/iOSStaticLibraries.pdf
2014-05-14 21:14:36 -04:00
利辺羅エルネスト 7c5b1fe3b7 Update CaptureASL Demo 2014-04-14 18:36:12 +09:00
利辺羅エルネスト 6b6fe9e091 Minor changes 2014-04-14 17:20:34 +09:00
Ernesto Rivera 888cd3f834 Merge pull request #242 from Diarrhio/master
Create ASL capture module.
2014-04-07 09:46:49 +09:00
Bogdan Poplauschi f31fce595f Merge pull request #255 from tipbit/CompressingLogFileManager-check-read-return
Fix a rare crash caused by an unchecked return value.
2014-04-01 10:34:44 +03:00
Bogdan Poplauschi 01bac7ec87 Merge pull request #251 from tipbit/CompressingLogFileManager-background-queue
Replace use of NSThread.detachNewThreadSelector.
2014-04-01 10:32:42 +03:00
Ernesto Rivera a74aa0bdd1 Merge pull request #250 from tipbit/CompressingLogFileManager-log-stream-error
Check and log some errors.
2014-04-01 15:10:22 +09:00
Ewan Mellor ed9b13e236 Set NSFileProtectionKey on the temporary file created during compression.
This uses the same protection for the temporary file as is used on
the log file itself.  This means that it has the same security
characteristics.  Also, if the app can run in the background, this
means that it gets NSFileProtectionCompleteUntilFirstUserAuthentication
so that we can do this compression even with the device locked.

This means that in effect we pick up the same decision as used in
DDFileLogger around doesAppRunInBackground.
2014-03-31 22:13:09 -07:00
Ewan Mellor 44da95aa4b Fix a rare crash caused by an unchecked return value.
Fix a rare crash in CompressingLogFileManager caused by an
unchecked result from read.  If the read fails, it returns -1.
This was then added to inputDataSize, which in turn is added to
inputRemaining further down the function, and used as an input
to memmove (and is unsigned to boot, so it'll be very large rather than
negative).  This means that the memmove stomps all over memory,
and we crash not long afterwards (often when an autorelease pool is
freed).

This crash is rare because it depends on the read call failing.

Fix this by checking the return value from NSStream.read, and leaving
the loop immediately if there's an error.
2014-03-31 18:42:37 -07:00
Ewan Mellor 5f5c3e522e Check and log some errors.
Log the streamError whenever we fail to write during compression,
and log any failures when removing the original file or cleaning up
the temporary file after compression failed.
2014-03-31 18:37:14 -07:00
Ernesto Rivera 70e9b96891 Merge pull request #253 from tipbit/CompressingLogFileManager-explicit-cast
Add explicit casts for integer conversion.
2014-04-01 09:50:16 +09:00
Ewan Mellor cd94ecc163 Add explicit casts for integer conversion.
Add explicit casts from NSUinteger to uInt for the assignments into
z_stream_s.  These types are different on 64-bit builds, and this
causes a warning in Xcode 5.1 with -Wshorten-64-to-32.
2014-03-31 12:22:48 -07:00
Ewan Mellor fc08a9b72a Replace use of NSThread.detachNewThreadSelector.
Replace use of NSThread.detachNewThreadSelector with a GCD dispatch
at DISPATCH_QUEUE_PRIORITY_BACKGROUND.

This means that the thread that's doing the compression is I/O throttled,
so it should stay out of the way of the rest of the app.

This could be important at start of day or resume from background,
because it will try and compress all the uncompressed log files it finds
in one go, and if the screen keeps getting locked before we have a
chance to complete then this can end up being a large number of files.
2014-03-31 11:58:47 -07:00
Ewan Mellor 8ac4eb65fd Add a constructor override for initWithLogsDirectory.
This is so that callers using that constructor from
DDLogFileManagerDefault don't bypass the code in
CompressingLogFileManager.init.
2014-03-31 11:53:26 -07:00
Bogdan Poplauschi a2e5666d0b Some extra warnings for the mobile framework xcode project 2014-03-24 11:19:14 +02:00
morgman 3ee6efd9e7 Update FineGrainedLoggingAppDelegate.m
Updated the delegate so that the added Loggers use a LogLevel that will actually show the new levels created for this project.
2014-03-21 13:48:56 -04:00
利辺羅エルネスト 45960dc3e8 Update Travis configuration to use pod update instead of pod install 2014-03-20 13:54:26 +09:00
利辺羅エルネスト fabeabac0d Fix Capture Demo Podfile 2014-03-20 12:31:25 +09:00
利辺羅エルネスト c9e561c734 Update Capture Demo 2014-03-20 12:09:29 +09:00
利辺羅エルネスト 06f0274d97 Add CaptureASL Demo and Travis configuration 2014-03-20 11:29:49 +09:00
Bogdan Poplauschi ab40de6b03 Updated FineGrainedLogging sample project to match the "newly" added DEBUG log level. 2014-02-18 10:48:29 +02:00
利辺羅エルネスト 53743c9ae7 Fix Podfile.lock 2014-01-15 14:04:11 +09:00
利辺羅エルネスト b133a8222a Add CLI Demo 2013-12-27 11:59:01 +09:00
Dmitriy Vorobyov 08ff849453 All urls in the project updated to use https://github.com/CocoaLumberjack/CocoaLumberjack repository 2013-12-05 00:22:06 +02:00
Dmitry Vorobyov e5cc56ea7f Tabs changed to spaces in Lumberjack and Xcode directories 2013-11-27 10:34:03 +02:00
Bogdan Poplauschi d253bd7792 Moved DDLog+LOGV.h file to the Lumberjack folder where it gets picked up by Cocoapods 2013-11-27 10:04:34 +02:00
Ernesto Rivera d33087ae1f Merge pull request #178 from bpoplauschi/DDMultiFormatter_and_extensions_preffix
DDMultiFormatter and extensions preffix
2013-11-26 17:32:40 -08:00
Bogdan Poplauschi 2d6c508750 Updated Custom Log Levels example due to the addition of DEBUG log level (The issue was spotted by a Koen Dierckx and reported here: https://groups.google.com/forum/#!topic/cocoalumberjack/gZavD3wxXUw) 2013-11-26 13:10:42 +02:00
Bogdan Poplauschi 43c5b00d78 Added DDMultiFormatter (allows chaining formatters) 2013-11-26 12:54:18 +02:00
Bogdan Poplauschi 9d02638d77 Added DD preffix to extension classes (ContextFilterLogFormatter and DispatchQueueLogFormatter) 2013-11-26 12:40:16 +02:00