mirror of
				https://github.com/amevarashi/RJW-Sexperience.git
				synced 2024-08-14 23:54:08 +00:00 
			
		
		
		
	Move log prefix to a constant
This commit is contained in:
		
							parent
							
								
									c9c96006cb
								
							
						
					
					
						commit
						d792e93fcd
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -7,6 +7,8 @@ namespace RJWSexperience.Logs
 | 
			
		|||
	// Copy of RJW code because of hardcoded mod name prefix. Maybe TODO: update RJW's version to accept prefix from LogProvider
 | 
			
		||||
	public static class LogManager
 | 
			
		||||
	{
 | 
			
		||||
		public const string LogPrefix = "[Sexperience]";
 | 
			
		||||
 | 
			
		||||
		private class Logger : ILog
 | 
			
		||||
		{
 | 
			
		||||
			private readonly string _loggerTypeName;
 | 
			
		||||
| 
						 | 
				
			
			@ -56,7 +58,7 @@ namespace RJWSexperience.Logs
 | 
			
		|||
 | 
			
		||||
			private string CreateLogMessage(string message)
 | 
			
		||||
			{
 | 
			
		||||
				return $"[Sexperience] [{_loggerTypeName}] {message}";
 | 
			
		||||
				return $"{LogPrefix} [{_loggerTypeName}] {message}";
 | 
			
		||||
			}
 | 
			
		||||
			private string CreateLogMessage(string message, Exception exception)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue