aboutsummaryrefslogtreecommitdiffstats
path: root/reference/csharp/eina/src/eina_log.cs
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-11-06 10:39:14 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2018-12-19 16:51:15 +0100
commitd74a4df9946b69f769cd0ad40d4414c90d19a515 (patch)
tree7d4de6983ac9b319085fd84f559d2f592fc215b3 /reference/csharp/eina/src/eina_log.cs
parentREADME: add instructions for using setup.py (diff)
downloadexamples-d74a4df9946b69f769cd0ad40d4414c90d19a515.tar.gz
csharp examples: Adapt to new classes syntax
Summary: Mainly use PascalCase Namespaces and Classes and proper event names. Test Plan: Check all examples still build. Reviewers: lauromoura, vitor.sousa, felipealmeida, bu5hm4n Reviewed By: bu5hm4n Differential Revision: https://phab.enlightenment.org/D7479
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();
}
}