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
Warren
5cacdeafa8
Adds in Serilog.Settings.AppSettings package
...
Configured to read from a custom .config file location as opposed to root web.config appsettings
Enable Serilog Debugging aka Selflog
2018-07-31 09:50:43 +01:00
Warren
cd2a70a520
Get logger to output as same file as old Log4Net and in same format (only diff currently is the log level type in the log file)
...
Ensures we use the calling type in the Umbraco ILogger and passes it onto Serilog
2018-07-30 16:36:38 +01:00
Warren
cf47fb99f2
An initial test of seeing if Serilog is setup & can write out to a new file
2018-07-27 16:19:44 +01:00
Warren
b774330e4f
Updates Logger class to implement & call Serilog methods as opposed to Log4Net
...
Unsure about the methods that take in args - have commented these out for now (Need to talk with Seb or Stephan about this)
2018-07-27 15:49:40 +01:00
Warren
f6d81f397d
Adds in Serilog & configures it to add in enrichers from the Nuget package & a custom one for the AppDomainAppId
2018-07-27 15:35:08 +01:00
Warren
0826928ffa
Adds in Serilog.Enrichers.Process & Serilog.Enrichers.Thread Nuget Packages
...
Removes AppDomainTokenConvertor - as we can add to SeriLog via a custom Enrich Property
2018-07-27 15:30:25 +01:00
Warren
182f72a5f8
Rename init logger method to be non specific to what logging framework we use
2018-07-27 14:37:03 +01:00
Warren
a3b018c6b5
Remove lots of classes that was specific to extending/configuring Log4Net further
2018-07-27 14:28:58 +01:00
Stephan
cc4815200e
Revert "Removed obsolete method from WebProfileProvider" (needed!)
...
This reverts commit 5d3309dbf1 .
2018-06-30 11:08:30 +02:00
Stephan
7a615133ff
Renormalize
2018-06-29 19:52:40 +02:00
Sebastiaan Janssen
db230aa45d
Merge pull request #2745 from aburok/hackathon-use-logger-info-with-func
...
Hackathon use logger info with func
2018-06-29 15:13:53 +02:00
Sebastiaan Janssen
f91bc1604a
Merge pull request #2744 from ed-parry/hackathon-remove-obsolete-methods
...
V8 Hackathon: remove obsolete methods
2018-06-29 14:51:18 +02:00
Dawid Koruba
7660e10098
Change calls to logger.Info method to use Func<string> parameter
2018-06-29 14:25:17 +02:00
Ed Parry
5d3309dbf1
Removed obsolete method from WebProfileProvider
2018-06-29 12:31:28 +01:00
Dawid Koruba
51ab9e32de
Change calls to logger.Debug method to use Func<string> parameter
2018-06-29 12:35:31 +02:00
Stephan
38eae90640
Cleanup and get rid of warnings
2018-05-31 11:53:14 +02:00
Shannon
6faa2ff177
Removes unused and obsoleted code
2018-05-01 01:27:25 +10:00
Stephan
553de2ea68
Cleanup ILogger
2018-04-03 16:15:59 +02:00
Shannon
271a100759
Obsolete the methods we want to remove from ILogger
2018-04-03 16:38:31 +10:00
Stephan
41948607d0
Port v7@2aa0dfb2c5 - WIP
2018-03-22 11:25:25 +01:00
Stephan
1c96df83cd
Port 7.7 - WIP
2017-09-08 19:39:13 +02:00
Stephan
c76403077f
Normalize cr/lf/tab
2017-07-20 11:21:28 +02:00
Stephan
64b2a094f3
Fix WebProfiler for back-office
2017-06-28 12:33:48 +02:00
Stephan
81234cd702
Rename DI to Composing
2017-05-30 15:46:25 +02:00
Stephan
8561d85f7a
porting 7.6-rc1 into 8
2017-05-24 12:25:39 +02:00
Stephan
3f4306a05f
Consolidate and update dependencies
2016-11-04 12:05:51 +01:00
Stephan
b26b415096
Merge origin/dev-v7-deploy into dev-v8-zbwip (builds)
2016-11-03 10:31:44 +01:00
Stephan
a00ee8d275
Rename DependencyInjection into DI, cleanup components, compose
2016-10-17 11:00:12 +02:00
Stephan
3f22e727f6
Some things need to be public/adjusted for Deploy
2016-09-23 16:42:42 +02:00
Stephan
5c2232aa3b
Refactor logging and profiling, boot reporting
2016-09-19 16:33:47 +02:00
Stephan
091816a2ea
RIP IApplicationEventHandler
2016-09-19 16:33:45 +02:00
Stephan
0597eea72b
Resvolution - Components, Runtime & Booting
2016-09-19 16:33:43 +02:00
Stephan
9949f07a46
Resvolution - Loggers & Booting
2016-09-19 16:33:38 +02:00
Stephan
be056869f0
Fix build after merge
2016-07-08 18:31:37 +02:00