aboutsummaryrefslogtreecommitdiffstats
path: root/reference/csharp/eina/src/eina_log.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/eina/src/eina_log.cs')
-rw-r--r--reference/csharp/eina/src/eina_log.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/reference/csharp/eina/src/eina_log.cs b/reference/csharp/eina/src/eina_log.cs
index ca8cce88..0e8664bd 100644
--- a/reference/csharp/eina/src/eina_log.cs
+++ b/reference/csharp/eina/src/eina_log.cs
@@ -13,14 +13,14 @@ public class Example
static double Divide(int num, int denom)
{
if (denom == 0)
- eina.Log.Critical("Attempt to divide by 0\n");
+ Eina.Log.Critical("Attempt to divide by 0\n");
else
{
if (denom < 0)
- eina.Log.Warning("Possible undesirable effect, divide by negative number");
+ Eina.Log.Warning("Possible undesirable effect, divide by negative number");
double ret = ((double) num / denom);
- eina.Log.Info($"{num} / {denom} = {ret}\n");
+ Eina.Log.Info($"{num} / {denom} = {ret}\n");
return ret;
}
@@ -39,24 +39,24 @@ public class Example
Console.WriteLine("Executing with default logging");
Divides();
- eina.Log.GlobalLevelSet(eina.Log.Level.Warning);
+ Eina.Log.GlobalLevelSet(Eina.Log.Level.Warning);
Console.WriteLine("Executing with Warning level"); // same as EINA_LOG_LEVEL = 2
Divides();
- eina.Log.GlobalLevelSet(eina.Log.Level.Info);
+ Eina.Log.GlobalLevelSet(Eina.Log.Level.Info);
Console.WriteLine("Executing with Info on"); // same as EINA_LOG_LEVEL = 3
Divides();
}
public static void Main()
{
- efl.All.Init();
+ Efl.All.Init();
LogLevels();
// TODO: missing
//LogCustom();
- efl.All.Shutdown();
+ Efl.All.Shutdown();
}
}