1 /** 2 * Copyright: Copyright (C) 2018 Gabriel Gheorghe, All Rights Reserved 3 * Authors: $(Gabriel Gheorghe) 4 * License: $(LINK2 https://www.gnu.org/licenses/gpl-3.0.txt, GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007) 5 * Source: $(LINK2 https://github.com/GabyForceQ/LibertyEngine/blob/master/source/liberty/logger/constants.d) 6 * Documentation: 7 * Coverage: 8 **/ 9 module liberty.logger.constants; 10 11 /** 12 * All types of log that you can use when logging a message. 13 **/ 14 enum LogType : ubyte { 15 /** 16 * Used to log an information message. 17 **/ 18 Info = 0x00, 19 20 /** 21 * Used to log a warning message. 22 **/ 23 Warning = 0x01, 24 25 /** 26 * Used to log an error message. 27 **/ 28 Error = 0x02, 29 30 /** 31 * Used to log an exception message. 32 **/ 33 Exception = 0x03, 34 35 /** 36 * Used to log a debug message. Only works in debug mode. 37 **/ 38 Debug = 0x04, 39 40 /** 41 * Used to log a todo message. 42 **/ 43 Todo = 0x05 44 } 45 46 /** 47 * 48 **/ 49 enum InfoMessage : string { 50 /** 51 * 52 **/ 53 ServiceStarted = "Service started successfully!", 54 55 /** 56 * 57 **/ 58 ServiceStopped = "Service stopped successfully!", 59 60 /** 61 * 62 **/ 63 Creating = "Creating..", 64 65 /** 66 * 67 **/ 68 Created = "Created", 69 70 /** 71 * 72 **/ 73 Destroying = "Destroying..", 74 75 /** 76 * 77 **/ 78 Destroyed = "Destroyed" 79 }