Stephan
e6d5af5c3a
Fix DisposableTimer messages
2018-09-27 10:51:29 +02:00
Stephan
16eab3eb49
Cleanup DisposableTimer log messages
2018-09-20 17:26:10 +02:00
Warren Buckley
8bad44782b
Move logic from the HttpRequestIdEnricher into our own class so its not coupled to Serilog when attempting to get ReqId in UmbracoModule start & end log requests
2018-09-14 14:44:00 +01:00
Warren Buckley
4184b277aa
Reduce the number of different properties, for the timing based logs for the duration in milliseconds to be consistently called 'Duration'
2018-09-06 20:38:03 +01:00
Warren Buckley
a825dd1b92
Configures the default logging pipeline to use the new enrichers
2018-09-06 20:35:02 +01:00
Warren Buckley
d27b4cce09
Adds a few most useful enrichers from the Serilog.Classic.Web project (we dont want all thex extra bloat such as handlers etc)
2018-09-06 20:20:24 +01:00
Warren Buckley
cd20348be5
Move Log4NetLevelMapper enricher into seperate folder - as we plan to add more
2018-09-06 20:19:32 +01:00
Stephan
34fb19ac76
Merge remote-tracking branch 'origin/temp8' into temp8-nuget-pkgs
2018-09-03 17:24:58 +02:00
Stephan
4a32eebb0b
Cleanup logging
2018-08-30 19:08:55 +02:00
Stephan
069c42ef36
Ensure all ILogger impl support message templates
2018-08-30 10:48:27 +02:00
Stephan
9e07bf0948
Improve ILogger documentation
2018-08-29 09:12:14 +02:00
Shannon
029eff1f8a
Some refactoring to decouple web based assemblies from Umbraco.Core and move whatever we can to Umbraco.Web where web based assemblies are used. Decouples System.Drawing entirely from Umbraco.Core and removes the Active Directory dependency from Umbraco.core.
2018-08-29 01:15:46 +10:00
Warren
34452e72c0
Adds the shared option to the File sink to avoid file locking & if app restarts we don't get _001 or _002 files etc
2018-08-28 09:46:51 +01:00
Shannon
94cbe3b1b8
updates timing id
2018-08-28 15:40:20 +10:00
Shannon
6506abd451
Simplifies logger calls to proxy all calls to a single method of it's type
2018-08-28 15:38:36 +10:00
Shannon
8d6e297c37
Adds additional Fatal methods to match Error and move Fatal code above error so all logger code goes from Fatal -> Verbose
2018-08-28 15:24:45 +10:00
Warren
24f91f1917
Adds in Error without ex for just a message and a message template with params
2018-08-23 14:43:38 +01:00
Warren
afebd88d45
Update ImageProcessorLogger - to use the new Error logger method that contains only an ex - and under the hood it will pass on an empty string to the message
2018-08-23 12:26:33 +01:00
Warren
0c9ac7fa45
Make Log4NetLevel enricher internal - no need for it to be public
2018-08-23 12:16:43 +01:00
Warren
66e4e1f0f4
Adds new method to ILogger for taking only the exception - NOTE will add an empty string for the message
2018-08-23 12:14:07 +01:00
Warren
3baf5697e4
Add in MachineName as a Serilog property
2018-08-21 12:48:06 +01:00
Warren
9e996c68bb
Refactored the error params, so that exception is before the message/template so its more in sync with Serilog signature & was an easy way to find some more logs I missed too
2018-08-17 15:41:58 +01:00
Warren
38984181fc
Adds the Fatal Logger Extension method <T>
2018-08-17 11:38:31 +01:00
Warren
a020d60f3e
Adds in new log level from Serilog to our Umbraco ILogger - Fatal (Worse than Error)
2018-08-17 11:26:22 +01:00
Warren
ce4a19a20a
Update OWIN logger with message template properties - mostly used for user X logged in (however we can't log those messages with properties) :(
2018-08-16 15:24:45 +01:00
Warren
47c8651609
Update more logging messages to use templates as opposed to string formats that were using the LoggerExtensions <T>
2018-08-16 12:00:12 +01:00
Warren
7f53786461
Sets the default text file logger to be debug only & for the JSON file to log verbose
2018-08-15 17:43:20 +01:00
Warren
93a69d89e8
Add in optional params for the Serilog LoggerConfig Extension methods, to control number of days to keep and the log level to use
2018-08-15 16:58:23 +01:00
Warren
e76d35e2ff
* Removes the unused func methods from Logger & DebugDiagnosticsLogger
...
* Adds in new Verbose logging level
2018-08-15 16:39:35 +01:00
Warren
95c5817e1e
Removes the logging Func from Interface AND updates the only usages
...
* UmbracoExamineindexer
* The extension method <T> wrappers
2018-08-15 15:21:27 +01:00
Warren
ed262e6d4b
Fix up the error method in the logger - to pass the exception to Serilog correctly (was wrong way round) & for it to add context of the <T> too
2018-08-15 14:53:23 +01:00
Warren
2a298aaaf5
FIRST PASS - Updates Umbraco.Core project to not use the func overload & to use new message template instead
2018-08-14 15:08:32 +01:00
Warren
1c54c4c87d
Update Umbraco ILogger extension methods to have some that support message templates for Serilog
...
* NOTE: Added obsolete with error bool set - to help me find uses to update easier
2018-08-14 15:05:58 +01:00
Warren
f62f3300c2
Implements updates from recent ILogger changes for these other classes that use it
2018-08-14 13:29:38 +01:00
Warren
404e79dd3f
Move DisposableTimer into Umbraco.Core.Logging - as it seems to be only related to logging
2018-08-14 13:22:44 +01:00
Warren
24cd72e9a5
Update Umbraco ILogger to use messagetemplates & params to make Serilog happy
2018-08-14 13:16:22 +01:00
Warren
c53d6f1948
Change Logger ctor to take in a Serilog LoggerConfiguration to make it easy to override in code if needed
2018-08-14 11:00:18 +01:00
Warren
31dcded8d6
Moves parts of the Serilog LoggerConfiguration to extensions methods for easier to read & re-use (if someone is attempting to configure the Serilog pipeline in code)
2018-08-14 09:37:29 +01:00
Warren
529a5e10d9
Use string.PadRight to be more explicit with what we are doing with the Log4Net level property enricher
2018-08-13 11:26:50 +01:00
Warren
212e0a091a
Allows Serilog to be configured in a serilog.user.config file that will not effect the main umbraco logger
...
Adds in support for filtering expressions - so the user logger configuration can filter by including or excluding on an expression - common use case to include only my namespace from SourceContext thjat starts with xyz
2018-08-09 22:08:40 +01:00
Warren
9446c2a568
Trying with a nested logger config to see if it works better
2018-08-09 19:51:22 +01:00
Warren
2ec18d0489
Bit of a hack - adds extra whitespace behind Log4Net Levels in our enricher so that they are all 5 characters in length and logfile aligns nicely as it used to in old Log4Net setup
2018-08-01 10:44:20 +01:00
Warren
c59912ce94
Adds in SourceContext property into text log file that was missing - aka C# class/namespace
2018-08-01 10:43:14 +01:00
Warren
b89e7bca97
Adds our Serilog Enricher so that we can map Serilog log levels to Log4Net levels and use it the text log file so that the logfiles still look the same as previously
2018-08-01 10:33:38 +01:00
Warren
1a69297c7e
Changes in tests proj to not use Log4Net but Serilog
...
However not sure how this is used to where the output of the logs was viewed when it was set/configured to console - VS Output Window, VSTS Logs?
2018-07-31 22:03:41 +01:00
Warren
eda6c62fcc
Minor change so that the text log filenames match better to old log4net style - adds in an extra . between Machine Name and the Date that gets added
2018-07-31 18:08:58 +01:00
Warren
5f226e7874
Adds in MachineName into the logfiles like we did previously
2018-07-31 16:15:07 +01:00
Warren
0c3601435e
Removes mention of Log4Net & removes commented out methods
2018-07-31 15:31:43 +01:00
Warren
81095fb77d
Adds an env variable (set to process level) so that the external config can use it to save files with a relative path
2018-07-31 12:43:26 +01:00
Warren
e886086aed
Adds in a new File sink - that will generate a JSON log file in the CLEF format so that it can be imported into a local copy of SEQ to help with filtering/finding log items
2018-07-31 10:21:26 +01:00