Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
Author : Tobias Stein
Date   : 11th September, 2016
File   : Logger.h
	
Class that manages the logging.

All Rights Reserved. (c) Copyright 2016.
*/

#if !defined(ECS_DISABLE_LOGGING)

#ifndef __LOGGER_H__
#define __LOGGER_H__

#include "Platform.h"

#include "Core/Headers/Console.h"

#define ECS_DISABLE_INFO_LOG

namespace ECS { namespace Log {

	class ECS_API Logger
	{		
		Logger(const Logger&) = delete;
		Logger& operator=(Logger&) = delete;
					

	public:

		explicit Logger();

		~Logger();

		// trace 
		template<typename... Args>
		inline void LogTrace(const char* fmt, Args... args)
		{			
            Divide::Console::printfn(fmt, std::forward<Args>(args)...);
		}

		// debug
		template<typename... Args>
		inline void LogDebug(const char* fmt, Args... args)
		{
            Divide::Console::d_printfn(fmt, std::forward<Args>(args)...);
		}

		// info
		template<typename... Args>
		inline void LogInfo(const char* fmt, Args... args)
		{
        #if !defined(ECS_DISABLE_INFO_LOG)
            Divide::Console::printfn(fmt, std::forward<Args>(args)...);
        #endif
        }

		// warn
		template<typename... Args>
		inline void LogWarning(const char* fmt, Args... args)
		{
            Divide::Console::warnfn(fmt, std::forward<Args>(args)...);
		}

		// error
		template<typename... Args>
		inline void LogError(const char* fmt, Args... args)
		{
            Divide::Console::errorfn(fmt, std::forward<Args>(args)...);
		}

		// fatal
		template<typename... Args>
		inline void LogFatal(const char* fmt, Args... args)
		{
            Divide::Console::errorfn(fmt, std::forward<Args>(args)...);
            assert(false && "Fatal Error");
		}

	}; // class Logger


}} // namespace ECS::Log


#include "Log/LoggerMacro.h"


#endif // __LOGGER_H__
#endif // !ECS_DISABLE_LOGGING

Commits for Divide-Framework/trunk/Source Code/Libs/EntityComponentSystem/include/ECS/Log/Logger.h

Diff revisions: vs.
Revision Author Commited Message
1021 Diff Diff IonutCava picture IonutCava Sun 21 Jan, 2018 22:19:16 +0000

[Ionut]
- Performance optimizations

1008 Diff Diff IonutCava picture IonutCava Fri 22 Dec, 2017 15:55:34 +0000

[Ionut]
- Cleanup GUIButton
- Small fixes with terrain rendering

993 Diff Diff IonutCava picture IonutCava Sun 10 Dec, 2017 20:07:57 +0000

[Ionut]
- Finished initial port of the old scene graph system to the new ECS based system.
- Finished converting 2 components to the new ECS system: Transform and RigidBody
- Fixed the “Deploy” build error with the CEGUI OpenGL renderer.
- Compilation now needs C++14 support (it’s sufficiently wide-spread now)

991 IonutCava picture IonutCava Tue 05 Dec, 2017 23:51:14 +0000