mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	apply codestyle request for complete file
This commit is contained in:
		
							parent
							
								
									dffd5bed9f
								
							
						
					
					
						commit
						6560aa987d
					
				| @ -39,10 +39,12 @@ public class Log_OC { | |||||||
|         Log.d(TAG, message); |         Log.d(TAG, message); | ||||||
|         appendLog(TAG + " : " + message); |         appendLog(TAG + " : " + message); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|     public static void d(String TAG, String message, Exception e) { |     public static void d(String TAG, String message, Exception e) { | ||||||
|         Log.d(TAG, message, e); |         Log.d(TAG, message, e); | ||||||
|         appendLog(TAG + " : " + message + " Exception : " + e.getStackTrace()); |         appendLog(TAG + " : " + message + " Exception : " + e.getStackTrace()); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|     public static void e(String TAG, String message) { |     public static void e(String TAG, String message) { | ||||||
|         Log.e(TAG, message); |         Log.e(TAG, message); | ||||||
|         appendLog(TAG + " : " + message); |         appendLog(TAG + " : " + message); | ||||||
| @ -65,6 +67,7 @@ public class Log_OC { | |||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|      * Start doing logging |      * Start doing logging | ||||||
|  |      * | ||||||
|      * @param storagePath : directory for keeping logs |      * @param storagePath : directory for keeping logs | ||||||
|      */ |      */ | ||||||
|     synchronized public static void startLogging(String storagePath) { |     synchronized public static void startLogging(String storagePath) { | ||||||
| @ -107,8 +110,9 @@ public class Log_OC { | |||||||
| 
 | 
 | ||||||
|     synchronized public static void stopLogging() { |     synchronized public static void stopLogging() { | ||||||
|         try { |         try { | ||||||
| 			if (mBuf != null) |             if (mBuf != null) { | ||||||
|                 mBuf.close(); |                 mBuf.close(); | ||||||
|  |             } | ||||||
|             isEnabled = false; |             isEnabled = false; | ||||||
| 
 | 
 | ||||||
|             mLogFile = null; |             mLogFile = null; | ||||||
| @ -155,6 +159,7 @@ public class Log_OC { | |||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|      * Append to the log file the info passed |      * Append to the log file the info passed | ||||||
|  |      * | ||||||
|      * @param text : text for adding to the log file |      * @param text : text for adding to the log file | ||||||
|      */ |      */ | ||||||
|     synchronized private static void appendLog(String text) { |     synchronized private static void appendLog(String text) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user